This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gdb and gcj: understandings
- From: Per Bothner <per at bothner dot com>
- To: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 27 Oct 2002 00:24:57 -0700
- Subject: Re: gdb and gcj: understandings
- References: <87n0p255md.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Nic Ferrier wrote:
I get the following message and nothing else:
can't find class named java::lang::Class as given by C++ RTTI
Is this because the Class has not been setup yet because GCJ has not
inited? (which would be unfixable) or is it something else that I
could fix (and thus interogate the values properly).
The main problem is that gdb doesn't handle namespace (C++) or
packages (Java) well. Java classes are hard-wired as fully-qualified,
so java.lang.Class gets the name "java.lang.Class". C++ on the other
hand drops namespaces, so "java::lang::Class" becomes plain "Class".
Gdb doesn't know that these are the same.
There is current work to improve Gdb's namespace support, but it's
a long process.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/