From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5473 invoked by alias); 30 May 2003 13:12:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5422 invoked from network); 30 May 2003 13:12:32 -0000 Received: from unknown (HELO sun.netezza.com) (209.113.240.37) by sources.redhat.com with SMTP; 30 May 2003 13:12:32 -0000 Received: from astral (host20 [192.168.0.20]) by sun.netezza.com (8.12.9+Sun/8.12.9) with SMTP id h4UDCUTA028125; Fri, 30 May 2003 09:12:30 -0400 (EDT) Message-ID: <0f5801c326ad$203fb6b0$1400a8c0@astral> Reply-To: "John S. Yates, Jr." From: "John S. Yates, Jr." To: "Daniel Jacobowitz" Cc: "gdb" References: <0eb201c325e9$5fb63450$1400a8c0@astral> <20030529152702.GA10363@nevyn.them.org> <0ec201c325fb$764554a0$1400a8c0@astral> <20030529160927.GA11795@nevyn.them.org> <0eda01c32606$4f21a490$1400a8c0@astral> <20030529172404.GA24128@nevyn.them.org> Subject: Re: malloc in inferior Date: Fri, 30 May 2003 13:12:00 -0000 Organization: Netezza Corporation MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-05/txt/msg00414.txt.bz2 From: "Daniel Jacobowitz" 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