www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/30/09:17:59

Date: Wed, 30 Oct 2002 16:17:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Chris Reay <mrchameleon AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: gcc -g, but no debugging info?
In-Reply-To: <7652139e.0210291532.7d4ffcf7@posting.google.com>
Message-ID: <Pine.SUN.3.91.1021030161709.12714C@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 29 Oct 2002, Chris Reay wrote:

> I'm a newbie, so please excuse my ignorance. I can't seem to get
> debugging info into my exe's, as this snippet shows:
> 
> C:\Nensuite>gcc -Wall -g -o hello.exe hello.c
> 
> C:\Nensuite>gdb hello.exe
> GNU gdb 4.18
> Copyright 1998 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 "i386-pc-msdosdjgpp"...
> (no debugging symbols found)...

GDB 4.18 doesn't support the debug info format used by the latest GCC.  
Upgrade to the latest GDB 5.2.1, and things will begin to work.

- Raw text -


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