"No symbol table is loaded." when ddd is remote debugging with gdbserver
I want to use ddd for remote debugging with gdbserver.
I compile the program uintstr.cpp with "-g" option. I start the program on the target. $ gdbserver 172.20.11.211:10000 uintstr Process uintstr created; pid = 8241 Then I start ddd on the host at the directory which has the source files. $ ddd (gdb) target remote 172.20.11.101:10000 uintstr target display this message on the shell which mean the debug session is setup properly: Remote debugging using 172.20.11.211:10000 At the host, I do: (gdb) b main (gdb) No symbol table is loaded. Use the "file" command. Why "No symbol table is loaded"? My PATH environment variable contains the current directory. (gdb) cont Program exited normally. target display this message: Killing inferior $ gdbserver 172.20.11.211:10000 uintstr_pause Process uintstr_pause created; pid = 8223 Remote debugging using 172.20.11.211:10000 sn 9001004 str 9001004 ... Child exited with retcode = 0 Child exited with status 0 GDBserver exiting ddd version is 3.3.1 and gdb is 5.0rh-15. |
I came across the same problem...
First you have to load the symbols with: (gdb) file uintstr Good luck! |
All times are GMT -5. The time now is 12:52 PM. |