delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/23/12:12:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Thu, 23 Dec 1999 12:12:06 -0500
From: Christopher Faylor <cygwin AT sourceware DOT cygnus DOT com>
To: Joost Kraaijeveld <JKraaijeveld AT Askesis DOT nl>
Cc: "Cygwin AT Sourceware. Cygnus. Com (E-mail)" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Core dumps
Message-ID: <19991223121206.A21266@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: Joost Kraaijeveld <JKraaijeveld AT Askesis DOT nl>,
"Cygwin AT Sourceware. Cygnus. Com (E-mail)" <cygwin AT sourceware DOT cygnus DOT com>
References: <1F8B49DD9100D31195FC00A0C94989FE0D7A AT obelix>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <1F8B49DD9100D31195FC00A0C94989FE0D7A@obelix>; from JKraaijeveld@Askesis.nl on Thu, Dec 23, 1999 at 10:10:57AM +0100

On Thu, Dec 23, 1999 at 10:10:57AM +0100, Joost Kraaijeveld wrote:
>Can anyone give me an explanation or a pointer to documentation as how
>to use a coredump?

If you are referring to cygwin's "core dumps" they are really just
human-readable ascii files.  They contain a listing of the
registers and a stack dump showing the last few functions called
prior to the crash.

You can use the program `addr2line' to figure out the symbolic names
of the functions from the hexadecimal addresses displayed in the file:

addr2line -e /whereever/cygwin1.dll 0x123466

or, alternatively you can use gdb:

gdb -nw myprog
l *0x123456

Note that the last few addresses in the stackdump used to be addresses
in cygwin itself.  The stack dump used to display the addresses of the
functions used to display the stack dump (sic).  This has been changed in
recent snapshots.

Note that if you are suffering from a repeatable crash it is usually
infinitely easier to just run the program under gdb.  Then you will
immediately see where the program dies.

cgf

--
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