Tools: Debugging Native and Java Code with WDB

Page 72
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Examine Instructions at Breakpoint
(gdb) x/16i $pc-32 - inlined java/net/SocketInputStream::read() code
0x6e411ce4: cmpib,=,n 0,%r9,0x6e411d20 ; if r9 (length) == 0 branch
0x6e411ce8: nop
0x6e411cec: copy %r7,%r26 ; load the argument registers
0x6e411cf0: copy %r5,%r25
0x6e411cf4: copy %r8,%r24
0x6e411cf8: copy %r9,%r23
0x6e411cfc: b,l,n 0x6e410a60,%rp ; java/net/SocketInputStream::socketRead
0x6e411d00: nop
0x6e411d04
: ldw -0xa0(%sp),%r22
0x6e411d08: ldw 0x14(%r22),%r21
0x6e411d0c: add,l %r21,%ret0,%r22
0x6e411d10: cmpib,>=,n 0,%ret0,0x6e411dfc ; check return value from Read
0x6e411d14: nop
0x6e411d18: ldw -0xa0(%sp),%r21
0x6e411d1c: stw %r22,0x10(%r21)
0x6e411d20: ldw -0x64(%sp),%r4