tty redirection with remote target

Jon Ringle jon.ringle@comdial.com
Fri Nov 12 18:58:00 GMT 2004


Hello,

If I invoke gdb with the tty option and connect to a remote target, the
console output from the remote target (sent with the 'O' command) is not
being redirected to the tty specified, but instead is seen in the same
console as gdb. This has a bigger impact when I try to use gdbtui. With
gdbtui, I see a blank line scroll up for every line that was sent by the
remote target.

Am I doing something wrong?

Jon

$ arm-linux-gdb --tty /dev/pts/16
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
(gdb) target extended-remote /tmp/interceptty
Remote debugging using /tmp/interceptty
sip_sendToNetwork (
    buffer=0x10fd4000 "REGISTER sip:10.74.64.2 SIP/2.0\r\nFrom: 122 <sip:122@10.74.64.2>\r\nTo: <sip:122@10.74.64.2>\r\nCall-ID: 11002655231373@10.11.12.82\r\nVia: SIP/2.0/TCP 10.11.12.82:5060\r\nMax-Forwards: 70\r\nUser-Agent: HIP24-3"..., buflen=0x15b, addr=0x10f5efa0, transptype=0x1, err=0x10fd9d5c) at sipuser.c:412
412         if (!wipglobals.interface_up)
warning: shared library handler failed to enable breakpoint
(gdb) b sip_sendToNetwork
Breakpoint 1 at 0x100bdae4: file sipuser.c, line 412.
(gdb) c
Continuing.
[13:18:43.109] sipfsm: next state 12(SIP_REGISTER_WAIT_STATE), prev state 10(SIP_DISCONNECTED_STATE), pconn = 10351c00
[13:18:43.108] phonefsm: next state 2(IDLEWAITREG)
...
Breakpoint 1, sip_sendToNetwork (
    buffer=0x10fd4000 "REGISTER sip:10.74.64.2 SIP/2.0\r\nFrom: 122 <sip:122@10.74.64.2>\r\nTo: <sip:122@10.74.64.2>\r\nCall-ID: 11002663821380@10.11.12.82\r\nVia: SIP/2.0/TCP 10.11.12.82:5060\r\nMax-Forwards: 70\r\nUser-Agent: HIP24-3"..., buflen=0x15b, addr=0x10f73ac0, transptype=0x1, err=0x10fd9d5c) at sipuser.c:412
412         if (!wipglobals.interface_up)
(gdb)



More information about the Gdb mailing list