| GDB: No symbol table is loaded. Use the "file" command. [message #988598] |
Fri, 30 November 2012 11:08  |
Eclipse hates me ! Messages: 9 Registered: September 2012 |
Junior Member |
|
|
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 
Is this a bug?
[Updated on: Fri, 30 November 2012 11:12] Report message to a 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   |
Axel Mueller Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Eclipse hates me ! wrote on Fri, 07 December 2012 16:13Still 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.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
| 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   |
Eclipse hates me ! Messages: 9 Registered: September 2012 |
Junior Member |
|
|
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] Report message to a 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   |
Axel Mueller Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Eclipse hates me ! wrote on Tue, 11 December 2012 12:08I 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.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
Powered by
FUDForum. Page generated in 0.01711 seconds