Bug#422569: gcj-4.1: gcj debug info emits "line 0"
Daniel Jacobowitz writes:
> Package: gcj-4.1
> Version: 4.1.2-4
> Severity: normal
>
> I recently upgraded gcj (and/or ecj?) and now a couple of GDB tests fail.
> To see the problem, take this file:
>
> public class jmain
> {
> public static void main (String[] args)
> {
> return;
> }
> }
>
> drow@caradoc:/space/fsf/commit/src/gdb% gcj -g -c -o j testsuite/gdb.java/jmain.java
> drow@caradoc:/space/fsf/commit/src/gdb% readelf -wi j | grep decl_line
> <9c> DW_AT_decl_line : 0
> <b8> DW_AT_decl_line : 0
> <d7> DW_AT_decl_line : 0
> <13a> DW_AT_decl_line : 1
> <19f> DW_AT_decl_line : 5
>
> Main appears to be declared on line 0 in the debug info. That last
> one is the argument "args".
>
> I'm told this does not happen on GCC HEAD and I don't recall it
I see the same behaviour with the gcc-snapshot package.
> happening on earlier 4.1.x Debian packages either.
4.1.2 does include the java merge from the fedora 4.1 branch (which
itself was backported from the trunk).
Reply to: