|
From: Oriol P. <aut...@gm...> - 2007-06-08 15:31:13
|
I will try. Thanks Vince. Oriol 2007/6/8, Vince Weaver <vi...@cs...>: > > > 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 > > |