This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __register_frame and gdb
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: __register_frame and gdb
- From: Fred Fish <fnf at ninemoons dot com>
- Date: Wed, 26 Nov 1997 06:42:02 -0700 (MST)
- Cc: egcs at cygnus dot com
> __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