From: Tom Tromey <tromey@redhat.com>
To: David Carlton <carlton@math.stanford.edu>
Cc: gdb <gdb@sources.redhat.com>, Michael Elizabeth Chastain <mec@shout.net>
Subject: Re: break jmisc.main
Date: Thu, 13 Mar 2003 22:59:00 -0000 [thread overview]
Message-ID: <87smtqswt5.fsf@fleche.redhat.com> (raw)
In-Reply-To: <ro1el5bknmg.fsf@jackfruit.Stanford.EDU>
>>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:
David> Here's the scoop with the FAILs on "break jmisc.main" and "break
David> jmisc.main(java.lang.String[]))".
Thanks a lot for looking at this.
David> .long .LC2 # DW_AT_name: "jmisc.main(java.lang.String[])"
David> Sigh. GCJ should get fixed.
I really don't know anything about debug info. How should this read?
In the above `jmisc' is just a class. However, `java.lang' is a
namespace. In the past at least there wasn't namespace support in
gdb...?
David> Unfortunately, it doesn't find one: the symbol that it
David> finds is called something strange like
David> "jmisc::main(Jaray<java::lang::String*>*)". (I'm pretty sure
David> that's right, though I'd have to check this at home to be sure;
David> that's what c++filt demangles the name to.)
Should be `JArray', but other than that it looks ok.
gcj uses the same mangling as C++. That is an important part of the
whole "CNI" approach to writing native methods -- you can just write
them in C++ with basically zero overhead.
I don't think there is any way to tell a Java symbol from a C++
symbol. Which one you want to use depends more on context -- if I'm
debugging the Java code, I like to see the Java symbols. If I'm
debugging the C++ code, it is probably more convenient to see the C++
form. Likewise for entering breakpoints and the like.
David> (And a third thing: convince somebody who knows more about GCJ
David> to become GDB's Java maintainer.)
I would love for anybody to become an active gdb/java maintainer.
The only inducement I have is the future possibility of a cool gcj
t-shirt (assuming I ever print more). That plus gratitude.
Tom
next prev parent reply other threads:[~2003-03-13 22:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 20:39 David Carlton
2003-03-13 20:54 ` David Carlton
2003-03-13 20:57 ` Daniel Jacobowitz
2003-03-13 21:07 ` Daniel Jacobowitz
2003-03-13 21:16 ` David Carlton
2003-03-13 21:22 ` Daniel Jacobowitz
2003-03-13 23:32 ` David Carlton
2003-03-13 23:36 ` Daniel Jacobowitz
2003-03-14 0:17 ` David Carlton
2003-03-14 4:18 ` Daniel Jacobowitz
2003-03-13 23:04 ` Tom Tromey
2003-03-13 22:59 ` Tom Tromey [this message]
2003-03-13 23:03 ` Daniel Jacobowitz
2003-03-14 15:09 Michael Elizabeth Chastain
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=87smtqswt5.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=carlton@math.stanford.edu \
--cc=gdb@sources.redhat.com \
--cc=mec@shout.net \
/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