From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Anthony Green" To: Subject: gdb and gcj symbols Date: Thu, 04 Oct 2001 22:57:00 -0000 Message-id: <005201c14d63$54b91000$5be6b4cd@cygnus.com> X-SW-Source: 2001-10/msg00059.html GDB's java support is quite broken right now. Here's an example... (gdb) set lang java (gdb) ptype jmisc type = class jmisc extends java.lang.Object { void main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE; void _ZN5jmiscC1Ev; } The stabs data refers to this correctly mangled symbol... _ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE So how does the physname get the "main__5jmisc" prefix? The full main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE string is passed to the v3 demangler, which doesn't recognize it and assumes it is a C symbol. Any ideas? Thanks, AG