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]

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


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