Article View: gnu.gcc.bug
Article #1716gcc/gdb don't work with gnu format debug information
From: Michael Reilly
Date: Tue, 20 Sep 1988 15:30
Date: Tue, 20 Sep 1988 15:30
55 lines
2086 bytes
2086 bytes
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
Technical Details
Message-ID:
<8809201530.AA10533@atari.NaC.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!ATARI.NAC.DEC.COM!reillyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!ATARI.NAC.DEC.COM!reilly From: reilly@ATARI.NAC.DEC.COM (Michael Reilly) Newsgroups: gnu.gcc.bug Subject: gcc/gdb don't work with gnu format debug information Message-ID: <8809201530.AA10533@atari.NaC.dec.com> Date: 20 Sep 88 15:30:34 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 54