No line xxx in file [message #1735457] |
Mon, 20 June 2016 02:26 |
Chuck Pergiel Messages: 30 Registered: April 2016 Location: Silicon Forest |
Member |
|
|
C program compiles, but debugger isn't happy. These red warning lines appear:
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
. . .
Type "apropos word" to search for commands related to "word".
No line 382 in file "/home/bogwan/Computer/eclipse/dedup/dedup.c".
No line 383 in file "/home/bogwan/Computer/eclipse/dedup/dedup.c".
No line 385 in file "/home/bogwan/Computer/eclipse/dedup/dedup.c".
There are 393 lines in the file. I wonder if this might be related to the scroll problem I over-reported.
Sent from my Commodore-64 via a US Robotics 300 Baud Modem
|
|
|
Re: No line xxx in file [message #1735489 is a reply to message #1735457] |
Mon, 20 June 2016 11:01 |
Tauno Voipio Messages: 742 Registered: August 2014 |
Senior Member |
|
|
A debug-compiled program file contains line-number records. It seems that GDB is not finding them in your executable file. To be debuggable, a program must be both compiled and linked with debugger flags. Also, to avoid weird line number associations with the actual code, it is advisable to compile without optimization. The debugger cannot always follow the transformations optimization does.
--
Tauno Voipio
|
|
|
Powered by
FUDForum. Page generated in 0.04417 seconds