This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb and gcj: understandings


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]