This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

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


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


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