Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] gcc debug option

On Fri, Apr 02, 2010 at 03:24:51PM -0500, John Cortell wrote:
> If you create a C++ project using the New Project wizard, the build
> ends up explicitly specifying -g2. On Windows, this produces level 2
> STABS information. This presents a problem on two fronts (maybe more;
> but these are two I'm aware of)
> 1. EDC doesn't support STABS; a debug launch just runs the program to
> completion
> 2. catchpoints on C++ exceptions don't work
> I think it can be safely said that DWARF-2 is significantly better
> than STABS as far as the quality and scope of information. Should we
> not change the wizard so that -gdwarf-2 is specified instead? Is that
> not a better default?

If you use a recent GCC, you'll get DWARF-2 automatically.

I recommend against having the string "-gdwarf-2" in CDT; at some
point, GCC is going to flip to DWARF-3 or DWARF-4 by default, and it
would be a shame for users to lose out on that.

Daniel Jacobowitz

Back to the top