This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC debug options
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Wei ZHANG <wei dot zhang-amk at st dot com>
- Cc: gcc-help at gcc dot gnu dot org, Arularasan RAMASAMY <arularasan dot ramasamy at st dot com>
- Date: Mon, 22 Nov 2004 16:43:53 +0000
- Subject: Re: GCC debug options
- Organization: Codesourcery LLC
- References: <41A184DB.5040402@st.com>
Wei ZHANG wrote:
Hi,
We used to have a debug option -gdwarf+ when we were using gcc 2.95.
However when we changed to higher version of gcc, we got these errors:
In gcc (GCC) 3.2, we got the warning:
cc1: warning: 'dwarf+': unknown or unsupported -g option
In gcc version 3.4.2, we got the error:
cc1: error: unrecognised debug output level "dwarf+"
After I checked the latest gcc manual, I found that this option has been
removed from gcc.
You could try the -ggdb or -gdwarf-2 options.
One shudders to think why you have a single source file with 1,000,000
lines in it, even if machine generated, ...
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk