comp.lang.ada
 help / color / mirror / Atom feed
From: Anonymous Coward <anonymous@coward.org>
Subject: GDB won't break on constants (was: Any way to turn of constant merging in GCC 2.8.1?)
Date: Sat, 18 Feb 2006 17:10:41 GMT
Date: 2006-02-18T17:10:41+00:00	[thread overview]
Message-ID: <lyIJf.284$gh4.197@trnddc06> (raw)
In-Reply-To: l2udv19u69kcshrp88jasi68b11ddh01l0@4ax.com

In article <l2udv19u69kcshrp88jasi68b11ddh01l0@4ax.com>, 
Craig Carey wrote:
> 
>  "-fmerge-constants   Attempt to merge identical constants (string
>    constants and floating point constants) across compilation units."
>   [is the default]

I may have misunderstood what merging constants does.  If it's only
merging identical constants, then inhibiting it won't help me.

My problem is that the debugger will not break on a definition for a
constant, and in some cases it will not allow me to override a
constant value.  It appears that the compiler may be doing some kind
of optimization, though I'm using the -O0 switch.

Are you saying (in your first response) that aliased constants won't
have this problem?



  reply	other threads:[~2006-02-18 17:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10  0:13 Any way to turn of constant merging in GCC 2.8.1? Anonymous Coward
2006-02-10  3:51 ` Keith Thompson
2006-02-10  6:13   ` Anonymous Coward
2006-02-18  3:01 ` Craig Carey
2006-02-18 10:37   ` Craig Carey
2006-02-18 17:10     ` Anonymous Coward [this message]
2006-02-20 21:55       ` GDB won't break on constants (was: Any way to turn of constant merging in GCC 2.8.1?) Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox