GDB remote debugging, can’t seem to find symbols

gdbremote-debugging

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?

Best Answer

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
Related Topic