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: chastain at cygnus dot com, fnasser at cygnus dot com
- Subject: Re: [RFA] Assuming malloc exists in callfwmall.exp
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Thu, 15 Feb 2001 12:56:23 -0800
- Cc: ac131313 at cygnus dot com, fnasser at redhat dot com, gdb-patches at sources dot redhat dot com, keiths at cygnus dot com
Fernando,
chastain> How do you know whether calling an inferior function uses malloc or not?
fernando> If it does not call a string it does not.
This is a very literal question.
OK, so you know that when gdb calls an inferior function with no string
arguments (or arrays, or big structures, whatever), and the target
program does not itself call malloc(), that the call works properly.
*How* do you know?
I know because I ran callfwmall.exp, callfwmall.exp tested this behavior,
and told me that it PASSed.
I also know because I read the source code in gdb/valops.c, which is a
different avenue of knowledge.
Michael