GDB remote debugging, can't seem to find symbols

fred basset picture fred basset · Dec 23, 2012 · Viewed 19.5k times · Source

I'm trying to remote debug an application running on a machine with address 192.168.98.64. On that machine I run:

gdbserver serveripaddr:4444 progname

then from the server I run "gdb", then at the gdb prompt run:

(gdb)  target remote 192.168.98.64:4444
Remote debugging using 192.168.98.64:4444
[New Thread 28432]
warning: Could not load vsyscall page because no executable was specified
try using the "file" command first.
0xb775e810 in ?? ()
(gdb) break internal[TAB]

I was expecting a press of the TAB key when trying to set my breakpoint to bring up a list of corresponding functions starting with internal, but it doesn't bring up anything. The code has been compiled with debugging turned on with -g. What am I doing wrong?

Answer

Employed Russian picture Employed Russian · Dec 24, 2012

I run "gdb"

You are supposed to give GDB the executable you are debugging (preferably a non-stripped version of it):

gdb /path/to/progname
(gdb) target remote 192.168.98.64:4444