> I want to access cpu registers I don't know if this helps. [...] #include <ucontext.h> [...] ucontext_t ctx; getcontext(&ctx); printf("%#010x\n", ctx.uc_mcontext.mc_eax); [...] Look at /usr/include/ucontext.h greets Andreas