Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » No line xxx in file(C program compiles, but debugger isn't happy.)
No line xxx in file [message #1735457] Sun, 19 June 2016 22:26 Go to next message
Eclipse UserFriend
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.
Re: No line xxx in file [message #1735489 is a reply to message #1735457] Mon, 20 June 2016 07:01 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Key to editor symbols
Next Topic:Error "Launched Failed. Binary file not found."
Goto Forum:
  


Current Time: Sun Nov 09 23:02:23 EST 2025

Powered by FUDForum. Page generated in 0.03246 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top