This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: malloc in inferior
From: "Daniel Jacobowitz" <drow@mvista.com>
Sent: Thursday, May 29, 2003 1:24 PM
[..SNIP..]
> Again, do you have a concrete example where GDB calls malloc() other
> than strings?
Had to think a bit. It obviously comes down to the
issue of needing the address of a value, as opposed
to an lvalue that already exists in the inferior.
This is obviously a bit more obscure than the mere
mention of a quoted string, but how about passing a
literal to a const-reference formal parameter?
/john