__register_frame and gdb

H.J. Lu hjl@lucon.org
Sat Nov 22 18:26:00 GMT 1997


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)



More information about the Gcc mailing list