This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb and gcj symbols
- To: "Anthony Green" <green at redhat dot com>
- Subject: Re: gdb and gcj symbols
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Fri, 5 Oct 2001 02:27:37 -0400
- Cc: <gdb at sources dot redhat dot com>
On Friday, October 5, 2001, at 02:02 AM, Anthony Green wrote:
> 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?
From the fun way we extract type info off of methods, in STABS, of
course!
breakpoint on parse_and_eval_type or something like that, and you'll see
it happen.
> 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
>