This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [RFC][BZ #7233] Do not let tr_break call be optimized away.


On Fri, Oct 25, 2013 at 03:46:19PM +0530, Siddhesh Poyarekar wrote:
> On Thu, Oct 17, 2013 at 08:09:04PM +0200, OndÅej BÃlka wrote:
> > Hi,
> > 
> > In following bug a gcc optimizes tr_break call in tr_freehook. Adding
> > side effect prevents that.
> 
> So what is the problem with optimizing the call?
> 
> Siddhesh

/* This function is called when the block being alloc'd, realloc'd, or
   freed has an address matching the variable "mallwatch".  In a debugger,
   set "mallwatch" to the address of interest, then put a breakpoint on
   tr_break.  */

debugger will not stop when it is optimized away.


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