delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/07/11/12:03:15

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: Sun, 11 Jul 1999 12:04:25 -0400
From: Chris Faylor <cgf AT cygnus DOT com>
To: Corinna Vinschen <corinna AT vinschen DOT de>
Cc: cygwin-developers <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re: 19990705 snapshot
Message-ID: <19990711120425.A745@cygnus.com>
References: <19990708172005 DOT A3884 AT cygnus DOT com> <6840 DOT 990710 AT logos-m DOT ru> <19990710133156 DOT A1241 AT cygnus DOT com> <37879DFE DOT CE830B78 AT vinschen DOT de> <3787A4C3 DOT 666322AC AT vinschen DOT de> <19990710183507 DOT A1841 AT cygnus DOT com> <19990710183645 DOT B1841 AT cygnus DOT com> <3787D6AE DOT 18EFE04B AT vinschen DOT de> <19990710193332 DOT C1841 AT cygnus DOT com> <378866A1 DOT 9DB27D87 AT vinschen DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <378866A1.9DB27D87@vinschen.de>; from Corinna Vinschen on Sun, Jul 11, 1999 at 11:40:49AM +0200

On Sun, Jul 11, 1999 at 11:40:49AM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>> >> [...]
>> >Why should the shell (the parent process of strace!) should have
>> >any influence in that???
>> 
>> I don't know.  Have you tried debugging strace?  Also, have you tried
>> the patch that I posted?
>> 
>> cgf
>
>I have figured out, that the problem is the argument handling.
>The executables in my path don't have .exe suffix. This works fine
>in cygwin and especially with tcsh. The strace app unfortunately uses
>the `CreateProcess' call without naming the application as the first
>parameter but only together with it's arguments as one commandline as
>second parameter. So the searching for the application is done by
>windows itself. In the strace code, there's a line 172:
>
>	/* cygwin32_conv_to_win32_path (exec_file, real_path);*/
>
>that shows, that you wanted to let the executable path handled
>by cygwin, which should be the correct way, IMHO.

Actually, this was a kludge that I should have gotten rid of.  If strace
is a cygwin program it can't adequately debug cygwin problems because it
interacts with things like tty handling.  Egor Duda supplied some
patches to make strace into a mingw program which I'll be using.

So, I guess the solution is to make strace do the same thing as cygwin by
searching the path for both .exe and non-.exe extensions.  It also should
be documented to take non-cygwin path specifications, for now.

I'll try to get to that as soon as I figure out the current problems that
people are reporting with the current snapshots.

Eventually, when we get the "load the cygwin DLL from a foreign application"
stuff worked out, I might be able to use bits of the DLL without causing other
unwanted activities.

cgf

- Raw text -


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