From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fred Fish To: hjl@lucon.org (H.J. Lu) Cc: egcs@cygnus.com Subject: Re: __register_frame and gdb Date: Wed, 26 Nov 1997 06:10:00 -0000 Message-id: <199711261342.GAA01355@ninemoons.com> References: X-SW-Source: 1997-11/msg00869.html > __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