delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/25/08:43:54

X-Spam-Check-By: sourceware.org
Date: Wed, 25 Oct 2006 14:43:23 +0200 (MET DST)
From: Angelo Graziosi <Angelo DOT Graziosi AT roma1 DOT infn DOT it>
To: cygwin AT cygwin DOT com
Subject: Re: Debugging symbols with GDB
Message-ID: <Pine.OSF.4.21.0610251428110.21748-100000@ax0rm1.roma1.infn.it>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Christopher Faylor wrote:

> Maybe you should be specifying an explicit ".exe" when you build.


On Cygwin
 
  $ gcc -g hello.c -o hello

produces 'hello.exe':

  $ ls -lrt
  -rwxr-xr-x  1 Angelo Administrators    8873 Oct 25 14:27 hello.exe

i.e. the same result of

  $ gcc -g hello.c -o hello.exe

  $ ls -lrt
  -rwxr-xr-x  1 Angelo Administrators    8873 Oct 25 14:33 hello.exe

In any case, building with 

  $ gcc -g hello.c -o hello.exe

does not change the result of GDB:

--------------------------------------------------------------------
$ gdb ./hello.exe
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(gdb)
------------------------------------------------------------------------




I have all cygwin installed and updated (on XP Pro), GCC-3.4.4-2(exp), GDB
being the 'curr' package, gdb-20060706-2.tar.bz2:

----------------------------------------------------------------------
$ gdb --version
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin".
-----------------------------------------------------------------------------


Cheers,

   Angelo.


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