Console Window Logging.
Keith Seitz
keiths@redhat.com
Thu Mar 7 15:48:00 GMT 2002
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
More information about the Insight
mailing list