Package: gdb Version: 6.4.90.dfsg-1 Severity: important
I've uncovered quite a big problem in gdb when attempting to debug Java. Firstly, here's the source code of Test.java: class Test { public static void main (String[] args) { System.out.println ("Hello"); return; } } I issue: javac Test.java gcj -g --main=Test -o Test Test.java gdb Test Now, when I try to list: GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) list 1 /tmp/ccRas48v.i: No such file or directory. in /tmp/ccRas48v.i (gdb) Now, this error is reproducable in the lastest in unstable as well. I used this version to downgrade to see if the problem was still there. The newer version this applies to is: GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) list 1 /tmp/cc0shoGQ.i: No such file or directory. in /tmp/cc0shoGQ.i (gdb) quit Now, I can temporarily fix this! If I do: [19:56:[EMAIL PROTECTED]>tmp]$ cp Test.java /tmp/ccRas48v.i [19:56:[EMAIL PROTECTED]>tmp]$ gdb Test GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) list warning: Source file is more recent than executable. 1 class Test { 2 3 public static void 4 main (String[] args) 5 { 6 System.out.println ("Hello"); 7 8 return; 9 } 10 } (gdb) It seems to not associate this temporary file it's creating with the source. I think it's strange it's looking for a temporary file in the first place. Good luck! - Lashi -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.18-2-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages gdb depends on: ii libc6 2.6-3 GNU C Library: Shared libraries ii libncurses5 5.6-3 Shared libraries for terminal hand ii libreadline5 5.2-3 GNU readline and history libraries gdb recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]