From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Elizabeth Chastain To: ac131313@cygnus.com, chastain@cygnus.com Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Assuming malloc exists in callfwmall.exp Date: Wed, 14 Feb 2001 18:35:00 -0000 Message-id: <200102150235.SAA07020@bosch.cygnus.com> X-SW-Source: 2001-02/msg00238.html 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