Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Paul Derbyshire" <derbyshire@globalserve.net>
To: cygwin@cygwin.com
Date: Sat, 27 Jul 2002 18:55:23 -0400
MIME-Version: 1.0
Subject: Re: Mysterious gdb behavior.
Reply-to: derbyshire@globalserve.net
Message-ID: <3D42EC9B.2934.510208B4@localhost>
In-reply-to: <20020727045007.47096.qmail@web10105.mail.yahoo.com>
References: <3D41C7D2.30094.4C8A5635@localhost>
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

On 27 Jul 2002 at 6:50, Sylvain Petreolle wrote:

> 
> > Now why is it suddenly complaining that perfectly good executables 
> > are bad? Or if the executables really are bad, why the hell do they 
> > *work* (at least, run and crash rather than fail to run at all) when 
> > launched from bash? Bash and gdb presumably spawn processes in the 
> > same way, however unix does that, and with the cygwin compatibility 
> > layer between that and however Windows spawns processes.
> > 
> Did you try this with several executable files ?
> The error could come from a single hosed file.

$ gdb -nw hw
GNU gdb 5.0 (20010428-3)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Pu
welcome to change it and/or distribute copies of it
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "sho
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /home/Paul Derbyshire/antheria/hw.exe
Error creating process /home/Paul Derbyshire/antheria/hw.exe, (error 
193)

(gdb) quit

$ ./hw
Hello, world!

Hosed executable, my arse. My test executable ran fine from the 
prompt three microseconds after choking gdb.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

