This is the mail archive of the gcc@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]

Re: __register_frame and gdb


> __register_frame () called from the .init section calls malloc ().
> But mmcheckf () called by init_malloc () in gdb wants itself to be
> called before any malloc calls. Otherwise gdb will say
> 
> warning: failed to install memory consistency checks; configuration
> should define NO_MMCHECK or MMCHECK_FORCE

Perhaps the solution is to have mmalloc install it's own consistency
checks the first time it is called, rather than depending upon the
application to explicitly make a call to set up consistency checking.
It could do this based on an environment variable for example.  Or we
could just hardcode it to always be on and live with the small runtime
penalty.

-Fred





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