Skip to main content



      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 05:14 Go to next message
Eclipse UserFriend
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 05:24] by Moderator

Re: Problems to make the debugger work [message #870881 is a reply to message #870659] Thu, 10 May 2012 03:18 Go to previous message
Eclipse UserFriend
Your application has no debug symbols. You must add the option -g to the gcc command line.
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: Tue Jun 17 01:34:03 EDT 2025

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

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

Back to the top