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]

__register_frame and gdb


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)


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