* Patch: libgui debug code -vs- stderr
@ 2000-11-27 19:11 Tom Tromey
2000-11-28 8:32 ` Syd Polk
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2000-11-27 19:11 UTC (permalink / raw)
To: Insight List
This patch changes the libui debug::logfile procedure to also
recognize `stderr' as special.
With this patch you can use `stderr' in GDBTK_DEBUGFILE and have it
work.
Ok to commit?
2000-11-27 Tom Tromey <tromey@cygnus.com>
* library/debug.tcl (logfile): Also recognize stderr.
Tom
Index: library/debug.tcl
===================================================================
RCS file: /cvs/src/src/libgui/library/debug.tcl,v
retrieving revision 1.2
diff -u -r1.2 debug.tcl
--- debug.tcl 2000/07/06 22:48:59 1.2
+++ debug.tcl 2000/11/28 03:07:31
@@ -40,13 +40,13 @@
proc logfile {file} {
variable logfile
- if {$logfile != "" && $logfile != "stdout"} {
+ if {$logfile != "" && $logfile != "stdout" && $logfile != "stderr"} {
catch {close $logfile}
}
if {$file == ""} {
set logfile ""
- } elseif {$file == "stdout"} {
+ } elseif {$file == "stdout" || $file == "stderr"} {
set logfile $file
} else {
set logfile [open $file w+]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch: libgui debug code -vs- stderr
2000-11-27 19:11 Patch: libgui debug code -vs- stderr Tom Tromey
@ 2000-11-28 8:32 ` Syd Polk
0 siblings, 0 replies; 2+ messages in thread
From: Syd Polk @ 2000-11-28 8:32 UTC (permalink / raw)
To: tromey; +Cc: Insight List
Approved.
Tom Tromey wrote:
>
> This patch changes the libui debug::logfile procedure to also
> recognize `stderr' as special.
>
> With this patch you can use `stderr' in GDBTK_DEBUGFILE and have it
> work.
>
> Ok to commit?
>
> 2000-11-27 Tom Tromey <tromey@cygnus.com>
>
> * library/debug.tcl (logfile): Also recognize stderr.
>
> Tom
>
> Index: library/debug.tcl
> ===================================================================
> RCS file: /cvs/src/src/libgui/library/debug.tcl,v
> retrieving revision 1.2
> diff -u -r1.2 debug.tcl
> --- debug.tcl 2000/07/06 22:48:59 1.2
> +++ debug.tcl 2000/11/28 03:07:31
> @@ -40,13 +40,13 @@
>
> proc logfile {file} {
> variable logfile
> - if {$logfile != "" && $logfile != "stdout"} {
> + if {$logfile != "" && $logfile != "stdout" && $logfile != "stderr"} {
> catch {close $logfile}
> }
>
> if {$file == ""} {
> set logfile ""
> - } elseif {$file == "stdout"} {
> + } elseif {$file == "stdout" || $file == "stderr"} {
> set logfile $file
> } else {
> set logfile [open $file w+]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-28 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-27 19:11 Patch: libgui debug code -vs- stderr Tom Tromey
2000-11-28 8:32 ` Syd Polk
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).