From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Elizabeth Chastain To: chastain@cygnus.com, fnasser@cygnus.com Cc: ac131313@cygnus.com, fnasser@redhat.com, gdb-patches@sources.redhat.com, keiths@cygnus.com Subject: Re: [RFA] Assuming malloc exists in callfwmall.exp Date: Thu, 15 Feb 2001 12:56:00 -0000 Message-id: <200102152056.MAA27190@bosch.cygnus.com> X-SW-Source: 2001-02/msg00267.html 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