gdb and gcj: understandings

Nic Ferrier nferrier@tapsellferrier.co.uk
Fri Oct 25 18:31:00 GMT 2002


When debugging gcj initialization I'm trying to print the values in a
class, eg:
void
_Jv_RegisterClasses (jclass *classes)
{
 for (; *classes; ++classes)
 {
 jclass klass = *classes;
 (*_Jv_RegisterClassHook) (klass);
 // registering a compiled class causes
 // it to be immediately "prepared". 
 if (klass->state == JV_STATE_NOTHING)
==>	klass->state = JV_STATE_COMPILED;
 }
}
When I do:
 gdb) p *classes->name
or
 gdb) p *classes->name
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).
Nic


More information about the Java mailing list

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