GDB Server and GDB Client who sends the "+" first? -
gdb client:
networkclientconnect 503: attempting host: 10.23.37.155 (addr: 02ce4b50)
networkclientconnect 518: connected host: 10.23.37.155
networkclientrecv 576: recv packet: +
networkclientsend 550: sent packet: +
gdb server:
debug: 243 275 pld.c:207 handle_pld_init_command(): initializing plds...
info : 244 22937 server.c:83 add_connection(): accepting 'gdb' connection 3333
debug: 247 22954 gdb_server.c:260 gdb_get_char_inner(): received '+'
debug: 248 22954 gdb_server.c:272 gdb_get_char_inner(): returned char '+' (0x2b)
initially connections made acknowledge got packet sending "+". in case client says receiving '+' , server first info exchange. not make sense. 1 has send , other receive see both receiving , sending in parallel. working. thinking wrong? if can point me url shows gdb server , client protocol exchange awesome.
in gdb client printout, looks me, messages not printed in order (see recv packet has number 576, , sent 550).
use wireshark or similar tool debug issue this.
i tried connecting gdbserver via loopback , according wireshark dialogue looks this:
- client sends "+"
- client sends "$qsupported:multiprocess+;xmlregisters=i386;qrelocinsn+#b5"
- server sends "+"
- server sends "$packetsize=3fff;qpasssignals+;..."
and on.
gdb option selectable @ runtime can debug such things. start it, issue "set debug remote 1". same on remote side. start gdbserver "gdbserver --remote-debug ...". print remote gdb protocol dialogue on both sides.
another, possibly best if time consuming options check gdb&gdbserver source.
Comments
Post a Comment