[gnu.gcc.bug] gcc/gdb don't work with gnu format debug information

reilly@ATARI.NAC.DEC.COM (Michael Reilly) (09/20/88)

The following session show my attempt to use the -gg option with gcc.
Note that when the breakpoint is hit the listing isn't of the main function
but is of the top of the source file.  Note aalso the error message when
"step" is attempted.  It doesn't seem to matter which source file I use.  The
results are always the same.

Is this supposed to work?


-- Information --

gcc - v1.28
gas - v1.24
ld  - installed from the binutils tar file on prep dated Sep 15 12:10
gdb - v2.8 (version included with emacs 18.52 + patches posted by Mr. Stallman)

---- Session log ----
 
% gcc -gg -o hacker.gg hacker.c
% gdb hacker.gg
GDB 2.7, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr1/users/reilly/work/hacker.gg...done.
Type "help" for a list of commands.
(gdb) break main
Breakpoint 1 at 0xd0
(gdb) run
Starting program: /usr1/users/reilly/work/hacker.gg 

Bpt 1, 0xd0 in main (1, 2147475144, 2147475152)
(gdb) list
1       #include <stdio.h>
2       #include <pwd.h>
3       #include <signal.h>
4
5
6
7       struct     passwd *pwd;
8
9       int   len, abort(), endpwent();
10
(gdb) step
Current function has no line number information.
(gdb)

mike

	Michael Reilly @ Digital Equipment Corporation
			 Networks and Communications Group

				reilly@atari.NaC.dec.com
				reilly%atari.NaC.dec.com@decwrl.dec.com
			...{allegra,decvax,ucbvax}!decwrl!atari.dec.com!reilly