Mail Archives: cygwin-developers/2001/09/11/21:53:29
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 -