Re: Some java questions

Daniel Jacobowitz
2008-09-09T21:31:11Z

On Tue, Sep 09, 2008 at 12:43:27PM -0700, Keith Seitz wrote:
> In the case of jmisc,exp, the test suite attempts to set breakpoints on
> "'jmisc.main(java.lang.String[])'" and
> "'jmisc.main(java.lang.String[])void'", working around the gcc bug
> (similar in jprint.exp). IMO, this is a very dangerous precedent. Bugs in
> the toolchain should not be worked around like this. They should be
> xfailed or (in this case), breaks at the correct "jmisc.main" should have
> been left in as well.

See jmain.exp, which is specifically for this issue.

> At long last, my question is: Is gdb supposed to be able to do something
> with "jmisc.main(java.lang.String[])void", i.e. is it considered valid
> "input" to break, print, and other commands?

As long as it appears in the mangling - and gcj is going to continue
emitting DW_AT_MIPS_linkage_name, which I expect it will - I think it
ought to work. Particularly with single quotes around it, as
jmisc.exp uses.

On Tue, Sep 09, 2008 at 03:17:52PM -0600, Tom Tromey wrote:
> FYI -- nobody really maintains the gcj support in gdb.

This is sad, but very much true.

--
Daniel Jacobowitz
CodeSourcery