[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
State-Changed-From-To: open->closed State-Changed-Why: pr gdb/883 is a premature version of pr gdb/884.
Fixing the resolution.
See bug 7989