Error when debugging program: "No Symbol table Loaded"

Asked

Viewed 111 times

0

When debugging the program the following error message appears:

Debugger name and version: GNU gdb (GDB) 7.10.1
Starting the debuggee failed: No Symbol table Loaded. Use the "file" command.
Debugger finished with status 0

This problem occurs only in this project. Any solution to this problem?

  • With which command this project was compiled?

1 answer

1


The message tells you to use the "file" command to load the file.

(gdb) exec-file test
(gdb) b 2
No symbol table is loaded.  Use the "file" command.
(gdb) file test
Reading symbols from /home/user/test/test...done.
(gdb) b 2
Breakpoint 1 at 0x80483ea: file test.c, line 2.
(gdb)

You can also try to pass the program on the command line

$ gdb test
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[...]
Reading symbols from /home/user/test/test...done.
(gdb) b 2
Breakpoint 1 at 0x80483ea: file test.c, line 2.
(gdb) 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.