> 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



_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to