This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__register_frame and gdb
- To: egcs at cygnus dot com
- Subject: __register_frame and gdb
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sat, 22 Nov 1997 18:26:51 -0800 (PST)
Hi,
__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
I don't see there is an easy fix since __register_frame () is called
before main (). We can put init_malloc () in the .init section. But
it has to be before __register_frame (). Can we put __register_frame ()
in crtend.o? Since __register_frame () is unique to gcc, we can
use the gcc feature to deal with __register_frame (). I just
want to know if __register_frame () can be put in crtend.o.
Thanks.
--
H.J. Lu (hjl@gnu.org)