< December 2004 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Mon, 20 Dec 2004:
gdb is the best debugger I've ever encountered. It can't do your homework , walk the dog or make coffee - but I discovered yesterday that there's nothing else that can debug JIT compiled code properly :).

I'm working on this PPC unroller - so I had to debug bits.

Program received signal SIGTRAP, Trace/breakpoint trap.
 0x3003b158 in ?? ()
 (gdb) x/4i $pc
 0x3003b158:     trap
 0x3003b15c:     or      r9,r9,r10
 0x3003b160:     or      r11,r11,r8
 0x3003b164:     stw     r9,-32(r19)
 (gdb) set $pc = $pc + 4  
 (gdb) ni
It's amazing ... I found this doc from the jikes RVM list - but that guy still didn't figure out how to do it the easy way by incrementing PC. Life's a lot easier now that I use gdb. Now to figure out how to make this a macro :)

posted at: 14:34 | path: /slashdot | permalink | Tags: