X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <bf0c3b3f0803131626p63d50888t536aa011143d70e3@mail.gmail.com>
Date: Fri, 14 Mar 2008 00:26:38 +0100
From: "Mathieu Malaterre" <mathieu.malaterre@gmail.com>
To: cygwin@cygwin.com
Subject: Using gdb on cygwin
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Hi there,

  I am trying to track down a seg fault in an app, but running it
through gdb does not seems to help. Is there anything I need to know
when using gdb on cygwin.
  For instance here is what I get (notice that I cannot get any backtrace):

$ gdb /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) r  --config /home/mmalaterre/Projects/gdcm/branches/release-cygwin-cmake
-cvs/CPackSourceConfig.cmake
Starting program: /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe --config /ho
me/mmalaterre/Projects/gdcm/branches/release-cygwin-cmake-cvs/CPackSourceConfig.
cmake
CPack: Create package using CygwinSource
CPack: Install projects
CPack: - Install directory: /home/mmalaterre/Projects/gdcm/branches/gdcm-2-0
CPack: Compress package
      9 [sig] cpack 592 open_stackdumpfile: Dumping stack trace to cpack.exe.sta
ckdump

Program exited with code 0103000.
(gdb) bt
No stack.

Thanks

-- 
Mathieu

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

