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: gdb with gcj


Vladimir Leven writes:
 > (gdb) run
 > Starting program: /home/levinv/dev/GcjDebugTest/a.out
 > [New Thread 16384 (LWP 2154)]
 > [New Thread 32769 (LWP 2155)]
 > [New Thread 16386 (LWP 2156)]
 > [Switching to Thread 16384 (LWP 2154)]
 > 
 > Breakpoint 1, test.main(java.lang.String[]) (args=@1003bfe8) at test.java:3
 > 3               test runme = new test();
 > Current language:  auto; currently java
 > (gdb) step
 > 0x30024f60 in __cache_line_size () from /lib/ld.so.1
 > [As you can see, I cannot even step through the program without it 
 > leaving Java mode. On Friday I was able to do that (not sure why), but 
 > no luck today. ]

You're stepping into the shared library loader to fixup a PLT entry
There's nothing weird or unexpected about this.

When you leave the shared library loader, you should get back to the
main context.

Andrew.


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