Date: Thu, 23 Feb 2006 14:37:49 +0100 (CET) From: <bachi@te-clan.ch> To: <pranav.sawargaonkar@gmail.com> Cc: hackers@freebsd.org Subject: Re: Saving register values Message-ID: <41209.193.134.254.115.1140701869.squirrel@webmail.te-clan.ch> In-Reply-To: <5007e1a40602230148g6b8e05ack781e9a70125dba8a@mail.gmail.com> References: <5007e1a40602230148g6b8e05ack781e9a70125dba8a@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41209.193.134.254.115.1140701869.squirrel>
