> > OOPS! It is wrong here, The right one should be as following: > > > > - memcpy(mem, current->thread.evr[regno-32], > > + memcpy(mem, (void*)¤t->thread.evr[regno-32], dbg_reg_def[regno].size); The (void *) cast should be unnecessary .... David