This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does this program cause an NPE in LibgcjInternalFinalizerThread??




Sounds plausible.  gdb doesn't let me print the "ref" variable
directly, however the only register I have that looks like a heap pointer
is $eax:

(gdb) x $eax
0x8180c78: 0x407f1568
(gdb) x 0x407f1568
0x407f1568 <_ZTVN4java4lang6StringE+8>: 0x407f15a0


x /x *(int **)ref

You can have all sorts of fun adding varients of this to breakpoint commands and conditions.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]