This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Console Window Logging.
- From: Keith Seitz <keiths at redhat dot com>
- To: Duane Ellis <duane_ellis at franklin dot com>
- Cc: <insight at sources dot redhat dot com>
- Date: Thu, 7 Mar 2002 15:48:29 -0800 (PST)
- Subject: Re: Console Window Logging.
On Thu, 7 Mar 2002, Duane Ellis wrote:
> Several people I support have asked me for a means by which to 'log
> the console window output' to a file. What I want is anything written
> to the TK Console window to go to *BOTH* the TK console window, and a
> file, ie: "foobar.log"
>
> How can I do this? {I cannot use the "-nw" option, I have
> to have tk/tcl operating in this situation}
It's really simple... Do you have a support contract? (O:-)
Take a look at gdbtk_tcl_fputs in interface.tcl. That should give you a
big head start. (Also look at gdbtk_fputs in generic/gdbtk-hooks.c and
the calls to gdbtk_fileopen in gdbtk.c's gdbtk_init.)
Keith