delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/22/18:34:07

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Sender: cwilson AT ece DOT gatech DOT edu
Message-ID: <374730BC.790CA9D0@ece.gatech.edu>
Date: Sat, 22 May 1999 18:33:33 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.6 [en] (X11; U; HP-UX B.10.20 9000/777)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: gdb + cygwin

I'm trying to port GAA (GPL Argument Analyzer) to cygwin. After a bit of
hacking, I was able to get the program itself to compile, and run.
However, when testing with the sample code provided in the package, I'm
running into a weird problem:

Background:
    GAA takes an argument description file, and generates a .c and a .h
file to be included in your project. It's basically an easier to use
version of getopt, getoptlong.

    "gaa sample.gaa"  ---> gaaout.c, gaa.h
    Then, you compile the sample code:
    gcc -g -c gaaout.c
    gcc -g -c smain.c

I get to that step okay. Linking works, too:
    gcc -o sample gaaout.o smain.o

I get a coredump when I run the sample program:

/usr/local/src/tmp > sample
[main] F:\cygnus\cygwin-b20\usr\local\src\tmp\sample.exe 27397 (0)
handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
[main] sample 27397 (0) handle_exceptions: Dumping stack trace to
sample.exe.core

Now, this isn't all that surprising. What is surprising is that when I
run "sample.exe" within gdb, it executes fine and exits normally. What
does that mean, and how do I debug the thing if I can't reproduce the
error within the debugger?

--Chuck



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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