public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Syd Polk <spolk@redhat.com>
To: tromey@cygnus.com
Cc: Insight List <insight@sourceware.cygnus.com>
Subject: Re: Patch: libgui debug code -vs- stderr
Date: Tue, 28 Nov 2000 08:32:00 -0000	[thread overview]
Message-ID: <3A237B08.C623A47D@redhat.com> (raw)
In-Reply-To: <87u28seq8n.fsf@creche.cygnus.com>

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+]

      reply	other threads:[~2000-11-28  8:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-27 19:11 Tom Tromey
2000-11-28  8:32 ` Syd Polk [this message]

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=3A237B08.C623A47D@redhat.com \
    --to=spolk@redhat.com \
    --cc=insight@sourceware.cygnus.com \
    --cc=tromey@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).