This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Track uninitialized variables


On Wed, May 09, 2007 at 11:07:28AM -0700, Ian Lance Taylor wrote:
> I'll expand my recommendation: provide a command line option, and use
> a configure test to set the default value of the command line option.
> Any other suggestions?

Trying to check at configure time for the features of a debugger seems
like a bad idea.  I'd recommend just defaulting it to off and
providing the option.  Darwin can wiggle it on by default if they
want.  It probably shouldn't be on by default on other platforms until
someone's approached the DWARF committee about it; it'll break all
other debuggers too.

If this goes in at all I'd like it on by default too, but not until it
won't be a compatibility headache.  It's a pity there's no graceful
way for a debugger to ignore unknown markers in the location
expressions.  It only affects printing values at points where they are
believed to be uninitialized, though, so maybe the collateral damage
is small.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]