delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/24/16:32:29

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: Fri, 24 Dec 1999 16:32:41 -0500
From: Christopher Faylor <cygwin AT sourceware DOT cygnus DOT com>
To: Joost Kraaijeveld <JKraaijeveld AT Askesis DOT nl>
Cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Debugger help
Message-ID: <19991224163241.A1262@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: Joost Kraaijeveld <JKraaijeveld AT Askesis DOT nl>,
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
References: <1F8B49DD9100D31195FC00A0C94989FE0D80 AT obelix>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <1F8B49DD9100D31195FC00A0C94989FE0D80@obelix>; from JKraaijeveld@Askesis.nl on Fri, Dec 24, 1999 at 08:59:48PM +0100

On Fri, Dec 24, 1999 at 08:59:48PM +0100, Joost Kraaijeveld wrote:
>No. That just runs to main, after displaying a message about a SIGSEGV
>with completely useless stacktrace (I can compare the stacktrace to
>trace statements inserted in the code). So what I want is to start from
>the very first line of code an step untill the offending line. Maby it
>has something to do with that fact that I am talking about 3 dll's and
>an executable. Because when I put all the source in one directory and
>create one big executable all works as expected.

No, it doesn't just "run to main".  If it did, I would never be able to
debug the cygwin DLL.  I assume that you are trying to debug a
cygwin-based program since you're sending mail to the cygwin newsgroup.

gdb will stop when the program gets a SIGSEGV.  That's what it is designed
to do and that's what it does.

If you are using a version of gdb that is newer than B20.1 you may be
experiencing the fact that gdb can now handle multiple threads.  So,
typing "thread 1" will switch you to your main thread.

One breakpoint that you can set prior to main is dll_crt0_1.  This is
in the cygwin DLL so you will first have to load its symbols with a:

add-sym cygwin1.dll 0x61001000

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