public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* tty redirection with remote target
@ 2004-11-12 18:58 Jon Ringle
  0 siblings, 0 replies; only message in thread
From: Jon Ringle @ 2004-11-12 18:58 UTC (permalink / raw)
  To: gdb

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-12 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12 18:58 tty redirection with remote target Jon Ringle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).