[RFA]: Fix jmain.exp to xfail for break at main
Jeff Johnston
jjohnstn@redhat.com
Wed Jul 7 20:23:00 GMT 2004
Currently, the gdb.java/jmain.exp test has hard-coded line 6 as the expected
line number for a break at jmain.main (java.lang.String[]). This occurs for gcc
3.3 and is incorrect. Line 6 is the end brace for the main routine. As of gcc
3.4, the line number is reported to be line 4. This also isn't what gdb wants
as this points to the open brace. The desired result is that we point to line 5
which is the first line in main (return statement). That said, I have changed
the expected line to be 5 and set the test as an XFAIL.
Tested on x86 RHEL3.
Ok?
-- Jeff J.
2004-07-07 Jeff Johnston <jjohnstn@redhat.com>
* gdb.java/jmain.exp: Fix expected line number for main to
break at. Set XFAIL for break at main test since gcj does not
provide line number info for first statement in main.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jmain-test.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20040707/0b91ce5b/attachment.ksh>
More information about the Gdb-patches
mailing list