Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Learning gdb
@ 2004-12-25 11:12 Russell Shaw
  2004-12-27 18:10 ` Marco Molteni
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Shaw @ 2004-12-25 11:12 UTC (permalink / raw)
  To: gdb

Hi,

I'm stepping thru gdb (gdb-6.3 on debian) using ddd/gdb. I got to
tui_command_loop() in tui-interp.c, but stepping thru gets a bit
tedious then.

What's a good way of printing messages from my own printfs in the
source without getting the output mixed up with the console output
of gdb? (in an x-windows environment)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Learning gdb
  2004-12-25 11:12 Learning gdb Russell Shaw
@ 2004-12-27 18:10 ` Marco Molteni
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Molteni @ 2004-12-27 18:10 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb

On Sat, 25 Dec 2004 22:15:47 +1100
Russell Shaw <rjshaw@netspace.net.au> wrote:

[..]

> What's a good way of printing messages from my own printfs in the
> source without getting the output mixed up with the console output
> of gdb? (in an x-windows environment)

man gdb:
    -tty=device
    Run using device for your program's standard input and output.

so in the xterm you want to use for your printfs, you issue the "tty"
command and use the value you get for gdb:

molter@gattaccio[~]$ tty
/dev/ttyp1

on another xterm:
gdb -tty=/dev/ttyp1


marco
-- 
Very graphic, classical but efficient.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-27 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-25 11:12 Learning gdb Russell Shaw
2004-12-27 18:10 ` Marco Molteni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox