Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <434EF021.8C23A29@dessent.net>
Date: Thu, 13 Oct 2005 16:39:13 -0700
From: Brian Dessent <brian@dessent.net>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.5.18: ld command generates stackdump
References: <045001c5cd2c$657579e0$1600a8c0@toyon.corp> <diccd2$s2d$1@sea.gmane.org> <056901c5cd3e$3986d010$1600a8c0@toyon.corp> <434A5ADB.2080602@byu.net> <20051010151806.GC14608@trixie.casa.cgf.cx> <20051010153309.GD14608@trixie.casa.cgf.cx> <036201c5d04a$7f485010$1600a8c0@toyon.corp>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

"Peter J. Stieber" wrote:

> Sorry in advance for the stupid questions, but...
> 
> I downloaded the binutils source package, and extracted the source. When
> I ran
> 
> ./configure --help
> 
> I didn't see a --enable-debug option or anything I though was
> equivalent. Am I missing something?

Normally, auto-tooled packages like binutils have a default value for
CFLAGS that is typically "-g -O2" which means you get the debug
information.  When creating binary packages for distribution the
binaries are typically stripped later.

This is just a long-winded way of saying that if you build with the
default configure options you should get debug information, and if not
use a CFLAGS override when calling configure.

> Do I also need to build a debug version of the cygwin DLL?

It would help, since otherwise backtraces will only have raw addresses. 
Note that the cygwin configure script[*] has a --enable-debugging
switch, but this is for enabling lots of runtime consistency checks and
extra verbosity -- it is not meant for enabling debug symbols, which you
should get by default.

[*] It's not in the toplevel configure, so it won't show up if you do
--help from there.  But if you --help in the winsup/cygwin directory it
will show up, and you can still specify it at the top level where it
will be passed along.

Brian

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

