gdb and gcj: understandings

Per Bothner per@bothner.com
Sun Oct 27 00:28:00 GMT 2002


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /