www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/06/04/08:36:31

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Date: Fri, 4 Jun 1999 08:36:49 -0400
From: Chris Faylor <cgf AT cygnus DOT com>
To: Corinna Vinschen <corinna AT vinschen DOT de>
Cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Text version of Windows error messages in small_printf considered harmful
Message-ID: <19990604083649.C772@cygnus.com>
References: <19990603115454 DOT A1505 AT cygnus DOT com> <37579252 DOT 34EB714E AT vinschen DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <37579252.34EB714E@vinschen.de>; from Corinna Vinschen on Fri, Jun 04, 1999 at 10:46:10AM +0200

On Fri, Jun 04, 1999 at 10:46:10AM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>> Because of this, I have conditionalized this code in recent snapshots.
>> It's off by default.
>> I'm thinking that an alternative is to add the
>> possibility to create text messages as an STRACE option.  I have always
>> wanted to write an strace program rather than using the kludgey environment
>> variable method.  If we did this, we could do something like
>> 'strace --text file.exe' to produce error message logs with text error
>> messages.
>
>IMHO, the environment variable method is ok. It allows, to debug an
>application, that is started from the service manager.
>The `strace' program would nevertheless be a convenient method. I
>like this idea, too, and I think, this program can be very easy:
>It only has to control the setting of the environment variable.

I was actually thinking of using OutputDebugString for strace_printf,
doing a simple 'if (strace ()) strace_printf (...)', letting the strace
program filter out the stuff that it needed.

The obviously crucial point here, though, is that the strace program should
not be a cygwin program.  Otherwise it's usefulness will be quite limited.

-chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019