|
From: Vince W. <vi...@cs...> - 2007-06-08 14:24:22
|
> Is the guest state accessible inside a instrumentation function?
I don't know if this is the right way to do it, but one of the plugins I
have for x86 that does some detailed instruction trace dumping does
something like this:
int tid,cs_reg;
tid=VG_(get_running_tid)();
cs_reg=VG_(threads)[tid].arch.vex.guest_CS;
for example, to get the guest CS segment register. I don't know if
there's an "official" way to do things like this. I think I might have
had to pull in some questionable header files to get access to the guest
state.
Vince
|