delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/24/12:49:04

X-Spam-Check-By: sourceware.org
Message-ID: <4567307B.7070100@bellsouth.net>
Date: Fri, 24 Nov 2006 11:48:43 -0600
From: "Charles D. Russell" <worwor AT bellsouth DOT net>
Reply-To: worwor AT bellsouth DOT net
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin cygwin <cygwin AT cygwin DOT com>
Subject: Re: .exe.stackdump and core dump files questions
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

    *   /From/: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn
      dot it>
    * /Subject/: .exe.stackdump and core dump files questions

------------------------------------------------------------------------

I would ask if there is an utility that transforme an .exe.stackdump
(bootstrap-emacs.exe.stackdump, for example) file in human-readable
informations.

______________________

The following advice worked for me:

______________________
Re: how to read stackdump
  From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
  To: "Charles D. Russell"
  Cc: cygwin at cygwin dot com
  Date: Sun, 11 May 2003 21:29:02 -0400 (EDT)
  Subject: Re: how to read stackdump
  Reply-to: cygwin at cygwin dot com

On Sun, 11 May 2003, Charles D. Russell wrote:

 > Some time back, someone asked in this mailing list how to read the 
stackdump
 > and was told to man addr2line.  I can't seem to get addr2line to work,
 > though.  Perhaps I don't understand the syntax, and man and info give no
 > examples.  When you type in the "address", should it be the number under
 > "Frame", the number under "Function", or what?  I have tried either and
 > both, and nothing works (I always get ??:0)  I also tried
 >
 >   addr2line -e testprog.exe <testprog.stackdump
 >
 > which gives me a whole column of ??:0.  I'm compiling with g77 using -g.
 > What am I doing wrong?

Charles,

addr2line expects addresses of functions.  It also expects its input
executables to be compiled with debugging support enabled.

Try the following:

  awk '/^[0-9]/{print $2}' testprog.exe.stackdump | addr2line -f -e 
testprog.exe

If testprog.exe was compiled with the "-g" gcc flag, this should work and
give you the names of the functions *in testprog.exe*.  Functions that
came from DLLs will need a separate invocation of addr2line (I don't think
you can specify several -e targets in one command), and will require DLLs
with debugging information, AFAIK.
    Igor
-- 
                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_        pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_        igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'        Igor Pechtchanski
    '---''(_/--'  `-'\_) fL    a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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