Re: malloc in inferior

John S. Yates, Jr.
2003-05-30T13:12:32Z

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