if start normal 'gdb' session, can reach stdin , see stdout directly in terminal:
$ gdb wc gnu gdb (gentoo 7.10.1 vanilla) 7.10.1 ... gdb> run starting program: /usr/bin/wc asdf 1 1 5 [inferior 1 (process 28131) exited normally] gdb> quit $ can same gdbserver???
here have tried (gdbserver):
$ gdbserver /dev/ttys0 wc process wc created; pid = 28156 listening on port 2345 and client:
$ gdb gnu gdb (gentoo 7.10.1 vanilla) 7.10.1 ... gdb> c continuing. program received signal sigint, interrupt. 0x00007ffff7ddbc40 in _start () target:/lib64/ld-linux-x86-64.so.2 gdb> but, seems stdin/stdout not being connected when using gdbserver.
how can run remote debugging on serial line, , access stdin/stdout of application i'm debugging on same serial line??
how can run remote debugging on serial line, , access stdin/stdout of application i'm debugging on same serial line??
you'll need use screen or tmux multiplex gdb<->gdbserver , keyboard->application traffic on single serial line.
Comments
Post a Comment