|
From: Julian S. <js...@ac...> - 2005-11-18 13:46:01
|
> switch(st->tag) {
> case Ist_IMark: {
> Addr instrAddr = (Addr) ULong_to_Ptr(st->Ist.IMark.addr);
>
> and I add a new statement to the BB that passes a list with
> mkIRExpr_HWord(instrAddr) to a callback which then prints the instrAddr
> with a VG_(message). believe this should print out the PC for the
> instruction. The problem I see is that in gdb on a Linux 2.4 machine is
> that each PC has a PC starting with 0x800... (as expected). My tool reports
> each PC starts with 0x3A966F... . The logrind 2 tool of C. January agrees
> with gdb.
That all sounds plausible. Why don't you send your entire instrumentation
function; then we can stare at it and see if there is anything obviously
wrong.
J
|