On Saturday 07 June 2003 07:22, Jerry Feldman wrote:
Use either the -g option by itself or -gdwarf+ The -gdwarf is used by SDB not GDB.
I'm sorry I wasn't too clear with my question. I'm using Absoft's Profortran f77 compiler that only outputs DWARF-1 format. When I compile 'hello world' with the f77 compiler and use '-g', I get this error when I use gdb on SuSE-8.1:
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)
I did not have this problem when I was using SuSE-7.2, gdb (or rather ddd) worked flawlessly with the executables outputted by the Absoft compiler. I've tried a number of things on this problem, including: downloading and building the same version of gdb that was on SuSE-7.2 (gdb-5.0, and a few versions in between as well as 5.3), using the '-gdwarf' arg to gcc (version 3.2 that was installed with SuSE-8.1) with a 'hello world' in C, also with gcc-2.95.3 (that I compiled) to verify that it wasn't some weird Absoft thing. gcc with '-gdwarf' seems to have the same problem, but the docs on the gdb webpage suggest that gdb supports DWARF-1 Anybody have any ideas? Thanks -Ben