From: Tom Tromey <tromey@cygnus.com>
To: Insight List <insight@sourceware.cygnus.com>
Subject: Patch: libgui debug code -vs- stderr
Date: Mon, 27 Nov 2000 19:11:00 -0000 [thread overview]
Message-ID: <87u28seq8n.fsf@creche.cygnus.com> (raw)
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+]
next reply other threads:[~2000-11-27 19:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-27 19:11 Tom Tromey [this message]
2000-11-28 8:32 ` Syd Polk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u28seq8n.fsf@creche.cygnus.com \
--to=tromey@cygnus.com \
--cc=insight@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).