This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]