Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » GDB: No symbol table is loaded. Use the "file" command.
GDB: No symbol table is loaded. Use the "file" command. [message #988598] Fri, 30 November 2012 11:08 Go to next message
Eclipse UserFriend
When I start debugging I see the following in GDB console:

No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
Quit


and none of the breakpoints is getting hit..

The binary I'm debugging certainly has debug info because outside of Eclipse gdb works fine. I've changed nothing in project settings or whatever, it just suddenly stopped working after a couple of runs. Tried restarting Eclipse - didn't help Sad

Is this a bug?

[Updated on: Fri, 30 November 2012 11:12] by Moderator

Re: GDB: No symbol table is loaded. Use the "file" command. [message #988864 is a reply to message #988598] Mon, 03 December 2012 08:46 Go to previous messageGo to next message
Eclipse UserFriend
The messages clearly indicates that gdb cannot find the symbol table. Either your application has no debug info or you use an external file with the debug symbols and that file was deleted.
Did you use the strip command?
Re: GDB: No symbol table is loaded. Use the "file" command. [message #989755 is a reply to message #988864] Fri, 07 December 2012 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Still doesn't work! I have multiple C and C++ projects in the same workspace and none of them can be debugged (even a new project)!

However on another workspace I'm able to run Hello World project and gdb loads symbols for it...

Is there something in workspace specific settings I could screw up?

[Updated on: Fri, 07 December 2012 10:14] by Moderator

Re: GDB: No symbol table is loaded. Use the "file" command. [message #989998 is a reply to message #989755] Mon, 10 December 2012 07:06 Go to previous messageGo to next message
Eclipse UserFriend
bump

[Updated on: Mon, 10 December 2012 13:56] by Moderator

Re: GDB: No symbol table is loaded. Use the "file" command. [message #990158 is a reply to message #989755] Tue, 11 December 2012 03:17 Go to previous messageGo to next message
Eclipse UserFriend
Eclipse hates me ! wrote on Fri, 07 December 2012 16:13
Still doesn't work! I have multiple C and C++ projects in the same workspace and none of them can be debugged (even a new project)!

However on another workspace I'm able to run Hello World project and gdb loads symbols for it...

Is there something in workspace specific settings I could screw up?

- Did you choose a Release build configuration?
- Do you use your own Makefile?
- Is the debug option (-g) for gcc enabled?
You should provide more info if you want some help.
Re: GDB: No symbol table is loaded. Use the "file" command. [message #990195 is a reply to message #990158] Tue, 11 December 2012 06:08 Go to previous messageGo to next message
Eclipse UserFriend
I had to create another workspace and import there my projects. And that worked.

I have no fucking idea why it didn't work for the old workspace. The projects are makefile-based projects, both makefile and project file are generated by CMake. As I said, outside of Eclipse exact same binary was loaded by gdb without any problems and I was able to debug it. Moreover, when I actually typed the "file path/to/executable" command in Eclipses' gdb console like I was told and then typed "continue", it worked as well. So I would guess it's something wrong with the gdb launcher or whatever starts gdb process.

[Updated on: Tue, 11 December 2012 09:15] by Moderator

Re: GDB: No symbol table is loaded. Use the "file" command. [message #990410 is a reply to message #990195] Wed, 12 December 2012 05:47 Go to previous messageGo to next message
Eclipse UserFriend
Eclipse hates me ! wrote on Tue, 11 December 2012 12:08
I had to create another workspace and import there my projects. And that worked.

I have no fucking idea why it didn't work for the old workspace. The projects are makefile-based projects, both makefile and project file are generated by CMake. As I said, outside of Eclipse exact same binary was loaded by gdb without any problems and I was able to debug it. Moreover, when I actually typed the "file path/to/executable" command in Eclipses' gdb console like I was told and then typed "continue", it worked as well. So I would guess it's something wrong with the gdb launcher or whatever starts gdb process.


Sounds like you used the wrong application/path in the Eclipse Debug Launch Configuration.
Re: GDB: No symbol table is loaded. Use the "file" command. [message #990450 is a reply to message #990410] Wed, 12 December 2012 09:37 Go to previous message
Eclipse UserFriend
No, the path was correct, I double checked. Like I said, I changed nothing, it just stopped working.

Even if it was wrong (which it wasn't) how would you explain the inability to launch a fresh Hello World project?

[Updated on: Wed, 12 December 2012 09:38] by Moderator

Previous Topic:C++ Windows - cannot step after breakpoint
Next Topic:Change debug register display to hexadecimal?
Goto Forum:
  


Current Time: Tue Jul 22 18:06:45 EDT 2025

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

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

Back to the top