This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: symtab/884: gdb, when debugging programs compiled with default gcc settings, does not work correctly when used with C files containing more than 65536 lines
- From: chastain at redhat dot com
- To: chastain at redhat dot com, gdb-prs at sources dot redhat dot com, michaelawells at netscape dot net, nobody at sources dot redhat dot com
- Date: 12 Dec 2002 06:40:51 -0000
- Subject: Re: symtab/884: gdb, when debugging programs compiled with default gcc settings, does not work correctly when used with C files containing more than 65536 lines
- Reply-to: chastain at redhat dot com, chastain at redhat dot com, gdb-prs at sources dot redhat dot com, michaelawells at netscape dot net, nobody at sources dot redhat dot com, gdb-gnats at sources dot redhat dot com
Synopsis: gdb, when debugging programs compiled with default gcc settings, does not work correctly when used with C files containing more than 65536 lines
Responsible-Changed-From-To: unassigned->chastain
Responsible-Changed-By: chastain
Responsible-Changed-When: Wed Dec 11 22:40:51 2002
Responsible-Changed-Why:
I'll track this.
State-Changed-From-To: open->feedback
State-Changed-By: chastain
State-Changed-When: Wed Dec 11 22:40:51 2002
State-Changed-Why:
gcc and gdb support several debugging formats. The two major formats are dwarf-2 and stabs+. stabs+ has a line limit of 65536 lines, and dwarf-2 has a much larger limit (I don't know what it is off-hand, sorry).
gcc 2.95.3 on Solaris-2 defaults to stabs+ (or maybe just plain stabs) in order to be compatible with the native toolchains. This is also true of gcc 3.0.4, gcc 3.1, gcc 3.1.1, gcc 3.2, and gcc 3.2.1.
Try selecting the dwarf-2 debugging format explicitly with:
gcc -gdwarf-2 long.c -o long
Let me know if that works, so I can close the PR. Thanks!
Michael C
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=884