Saving register values

bachi at te-clan.ch bachi at te-clan.ch
Thu Feb 23 05:38:48 PST 2006


> 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





More information about the freebsd-hackers mailing list