I've just installed SuSE 8.1 (on i386), upgrading from SUSE 7.2, and am having some trouble getting gdb to work:
cat hello.c #include <stdio.h>
int main () { printf("Hello, World\n"); }
gcc -gdwarf hello.c
gdb ./a.out GNU gdb 5.2.1 Copyright 2002 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 "i586-suse-linux"... (gdb) list 1 init.c: No such file or directory. in init.c (gdb)
This, with the compiler that came with 8.1. Does this look framiliar to anyone? It works ok if I do a 'gcc -g hello.c'. I need the dwarf because I'm using Absoft's f77 compiler. I had no problem on 7.2, and I've downloaded and tried that version of gdb (5.0) but it doesn't work either. any suggestions? thanks. -Ben