This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gdb and gcj: understandings
- From: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- To: java at gcc dot gnu dot org
- Date: 26 Oct 2002 01:52:10 +0000
- Subject: gdb and gcj: understandings
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