This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/31900] New: Java line number debug info is bogus
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2007 15:47:02 -0000
- Subject: [Bug java/31900] New: Java line number debug info is bogus
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compile this program with gcj -g:
public class jmain
{
public static void main (String[] args)
{
return;
}
}
There are five constructs with line numbers in the readelf -wi output (search
for decl_line). The class jmain, the method main, and the synthetic
constructor all have line number zero; they should be 1, 3, and
not-sure-but-probably-1 respectively. The argument args is listed on line 5
instead of line 3 where it is declared in the source. The synthetic "this"
argument to the synthetic constructor has line 1.
--
Summary: Java line number debug info is bogus
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
GCC host triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31900