Bug 7988 - gdb, when debugging programs compiled with default gcc settings, does not work correctly when used with C files containing more than 65536 lines
Summary: gdb, when debugging programs compiled with default gcc settings, does not wor...
Status: RESOLVED INVALID
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: 5.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-11 18:48 UTC by michaelawells
Modified: 2010-09-26 13:08 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
long.c (740 bytes, application/octet-stream)
, michaelawells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michaelawells 2002-12-12 02:48:00 UTC
[Converted from Gnats 883]

gdb, when debugging programs compiled with default gcc settings, does not work correctly when used with C files containing more than 65536 lines

Release:
gdb-5.2; gcc 2.95.3

Environment:
Solaris 2.8

How-To-Repeat:
Compile long.c:

   gcc -g long.c -o long

Use gdb to debug long:
   gdb long

Attempt to set a breakpoint at line 69987:

(gdb) break 69987
No line 69987 in file "long.c".

But there is a line 69987 in long.c.

Attempt to set a break at 'foo':

(gdb) break foo
Breakpoint 1 at 0x10710: file long.c, line 4451.
(gdb) 

But line 4451 contains nothing but a comment.

Notice that 69986 - 65535 = 4451
Comment 1 Michael Elizabeth Chastain 2002-12-12 05:43:23 UTC
State-Changed-From-To: open->closed
State-Changed-Why: pr gdb/883 is a premature version of pr gdb/884.
Comment 2 Frédéric Buclin 2010-09-26 13:08:41 UTC
Fixing the resolution.
Comment 3 Frédéric Buclin 2010-09-26 13:08:51 UTC
See bug 7989