Sunday, September 5, 2010

Debugging with gdb

Hi all,
i need to setup a remote debug session of a QT application.
Since i have some problems i started with a local debugging using gdb ./app + run. This was ok.
Then i used two shells in which i launched gdbserver in the first one and gdb in the second one.

gdbserver:

Qt Code:
Switch view 1.[root@centos-sd seashell]# gdbserver :2345 ./seadragonshellapp2.Process ./seadragonshellapp created; pid = 70633.Listening on port 23454.Remote debugging from host 127.0.0.1[root@centos-sd seashell]# gdbserver :2345 ./seadragonshellapp
Process ./seadragonshellapp created; pid = 7063
Listening on port 2345
Remote debugging from host 127.0.0.1To copy to clipboard, switch view to plain text mode

gdb:

Qt Code:
Switch view 1.(gdb) target remote :23452.Remote debugging using :23453.0x0097f7c0 in ?? ()4.(gdb) list5.No symbol table is loaded. Use the "file" command.6.(gdb) run7.The program being debugged has been started already.8.Start it from the beginning? (y or n) n9.Program not restarted.10.(gdb) start11.No symbol table loaded. Use the "file" command.12.(gdb)(gdb) target remote :2345
Remote debugging using :2345
0x0097f7c0 in ?? ()
(gdb) list
No symbol table is loaded. Use the "file" command.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) start
No symbol table loaded. Use the "file" command.
(gdb)To copy to clipboard, switch view to plain text mode

I don't understand why since the project is the same
Any known problem on gdbserver?

Thanks


...................................................................
Try:
gdb ./seadragonshellapp
(gdb) target remote :2345
(gdb) cont

No comments:

Post a Comment