delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/11/21:53:29

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Tue, 11 Sep 2001 21:53:41 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Quick testfeedback...
Message-ID: <20010911215341.B1141@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20010911204019 DOT H1752 AT dothill DOT com> <20010911210854 DOT A1108 AT dothill DOT com>
Mime-Version: 1.0
In-Reply-To: <20010911210854.A1108@dothill.com>
User-Agent: Mutt/1.3.21i

On Tue, Sep 11, 2001 at 09:08:54PM -0400, Jason Tishler wrote:
>On Tue, Sep 11, 2001 at 08:40:19PM -0400, Jason Tishler wrote:
>> On Wed, Sep 12, 2001 at 09:19:19AM +1000, Robert Collins wrote:
>> > If it was after the bugfix commit, I'd like to see if we can track this
>> > asap...
>> 
>> I can reproduce it frequently but not every time.  I will debug it first
>> thing tomorrow morning.  FYI, it seems to occur right near the end of
>> the test and the test still passes.
>
>I'm also having cockpit error trying to use error_start.  I have tried
>the following:
>
>    binmode notty ntsec error_start:c:/debug.bat
>                                   ^
>                                   *
>
>and
>
>    binmode notty ntsec error_start=c:/debug.bat
>                                   ^
>                                   *
>With debug.bat as follows:
>
>    $ cat c:/debug.bat
>    C:/Cygwin/bin/gdb.exe -nw %1 %2 %3 %4 %5
>
>With the above, when broadcast GPFs, gdb is not started.  Any idea what
>I'm doing wrong?

Both examples look right.

This is one of those situations where I would just debug cygwin to
see why it isn't working as advertised.

Write a simple test program (tst.c) that dereferences zero:

int
main(int argc, char **argv)
{
  int *i = 0;
  *i = 1;
}

gcc -o tst.exe -g tst.c

gdb tst.exe
dll cygwin1
l error_start_init
bp whatever first line is
l try_to_debug
bp whatever first line is
r

Does it hit error_start_init?  If not, more debugging of "parse_options"
required.

If so, you should have hit "try_to_debug".  Single step that and see why
that isn't working.

Or, as a very quick test run the program with strace and see if it is
obvious what is going wrong.

cgf

- Raw text -


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