Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Mon, 20 June 2016 02:26 Go to next message
Chuck Pergiel is currently offline Chuck PergielFriend
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 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
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
Previous Topic:Key to editor symbols
Next Topic:Error "Launched Failed. Binary file not found."
Goto Forum:
  


Current Time: Tue Mar 19 06:50:36 GMT 2024

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

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

Back to the top