Bug#422569: gcj-4.1: gcj debug info emits "line 0"
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
happening on earlier 4.1.x Debian packages either.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.21 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcj-4.1 depends on:
ii ecj 3.2.2-2 standalone version of the Eclipse
ii gcc-4.1 4.1.2-5 The GNU C compiler
ii gcj-4.1-base 4.1.2-4 The GNU Compiler Collection (gcj b
ii gij-4.1 4.1.2-4 The GNU Java bytecode interpreter
ii java-common 0.25 Base of all Java packages
ii libc6 2.5-5 GNU C Library: Shared libraries
ii libc6-dev 2.5-5 GNU C Library: Development Librari
ii libgcc1 1:4.1.2-5 GCC support library
ii libgcj-bc 4.1.2-2 Link time only library for use wit
ii libgcj7-dev 4.1.2-4 Java development headers and stati
ii libgcj7-jar 4.1.2-4 Java runtime library for use with
ii libmagic1 4.20-5 File type determination library us
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages gcj-4.1 recommends:
ii ecj-gcj 3.2.2-2 standalone version of the Eclipse
ii fastjar 2:0.95-1 Jar creation utility
-- no debconf information
Reply to: