From: Daniel Berlin <dan@cgsoftware.com>
To: "Anthony Green" <green@redhat.com>
Cc: <gdb@sources.redhat.com>
Subject: Re: gdb and gcj symbols
Date: Thu, 04 Oct 2001 23:28:00 -0000 [thread overview]
Message-ID: <11A6BFD1-B95A-11D5-8B45-0030657B5340@cgsoftware.com> (raw)
In-Reply-To: <005201c14d63$54b91000$5be6b4cd@cygnus.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
>
next prev parent reply other threads:[~2001-10-04 23:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-04 22:57 Anthony Green
2001-10-04 23:28 ` Daniel Berlin [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-16 11:29 Anthony Green
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11A6BFD1-B95A-11D5-8B45-0030657B5340@cgsoftware.com \
--to=dan@cgsoftware.com \
--cc=gdb@sources.redhat.com \
--cc=green@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox