Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* question about method naming
@ 2002-05-06 10:44 Tom Tromey
  2002-05-06 12:33 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2002-05-06 10:44 UTC (permalink / raw)
  To: Gdb List

I compiled the appended code with `gcj -g'.  I'm using the trunk cvs
gcj.  Then I ran gdb on the program.

If I type:

    b x.main

gdb tells me that there is no such method.

I tracked the problem down to linespec.c:find_methods().

Here we end up in the loop, and method_name for the 0th method is:

    (gdb) p method_name
    $27 = 0x83e9a52 "x.main(java.lang.String[])"

So of course we fail to match this against "main".

Is this a gdb bug or a gcj bug?  Or just a disagreement?

I'm guessing that method_name should not be fully qualified.
Is that correct?

Tom

public class x
{
  public static void main (String[] args)
  {
    char c = args[0].charAt(0);
    System.out.println(c);
  }
}


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-06 23:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-06 10:44 question about method naming Tom Tromey
2002-05-06 12:33 ` Daniel Jacobowitz
2002-05-06 15:53   ` Tom Tromey
2002-05-06 16:07     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox