Re: [RFA] Assuming malloc exists in callfwmall.exp

Michael Elizabeth Chastain
2001-02-14T18:35:00Z

Argh. Let me say that again:

chastain> (1) Test for the presence of malloc the way Keith Seitz is doing
chastain> (but put the test after runto_main).

cagney> it is testing exactly what it should be testing but the above would
cagney> disable malloc for this target.

I'm proposing that Keith move the "p malloc" line *after* the call
to "runto_main". That would detect that malloc was available in the
inferior.

If malloc is available in the inferior, then callfwmall.exp should
stop execution. If malloc is not available, then callfwmall.exp can
continue testing that gdb can make inferior calls in a target program
that does not have malloc.

Michael