This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Assuming malloc exists in callfwmall.exp
- To: ac131313 at cygnus dot com, chastain at cygnus dot com
- Subject: Re: [RFA] Assuming malloc exists in callfwmall.exp
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Wed, 14 Feb 2001 18:35:12 -0800
- Cc: gdb-patches at sources dot redhat dot com
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