Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problems to make the debugger work
Problems to make the debugger work [message #870659] Wed, 09 May 2012 09:14 Go to next message
Michel Dupront is currently offline Michel DuprontFriend
Messages: 1
Registered: May 2012
Junior Member
Hello,
I am trying to use eclipse with ubuntu 12.04 to debug a c++ program.
Things that were working fine with ubuntu 10.04 now give me problems.

From eclipse I built a c++ "Makefile project".
I set it up as I did before.
It runs fine.
But when I want to debug, I get:

My_Exe [C/C++ Application]	
  gdb/mi (09/05/12 10:06) (Suspended)	
    Thread [1] (Suspended)	
      4 <symbol is not available> 0xb7fe0cb2	
      3 <symbol is not available> 0xb7ff2977	
      2 <symbol is not available> 0xb7fe2eeb	
      1 <symbol is not available> 0xb7fdf1d7	
    gdb (09/05/12 10:06)	
    /My_Path/My_Exec (09/05/12 10:06)	


If I click in "step over" anyway, here is the message I get in
the Console window:

.gdbinit: No file or folder of this kind    ("Aucun fichier ou dossier de ce type" in French).
Reading symbols from /My_Path/My_Exec...done.
Single stepping until exit from function _dl_debug_state,
which has no line number information.



I don't know where to start here to fix this problem.
Is the problem due to the gdb compiler ? to eclipse ?
Thanks for any help.

[Updated on: Wed, 09 May 2012 09:24]

Report message to a moderator

Re: Problems to make the debugger work [message #870881 is a reply to message #870659] Thu, 10 May 2012 07:18 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Your application has no debug symbols. You must add the option -g to the gcc command line.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:How to change the default build configurations when create a new project?
Next Topic:Why is it so difficult to get C++ to work?
Goto Forum:
  


Current Time: Fri Apr 19 11:28:04 GMT 2024

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

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

Back to the top