From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31836 invoked by alias); 19 Mar 2007 02:16:02 -0000 Received: (qmail 31820 invoked by uid 22791); 19 Mar 2007 02:16:01 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Mar 2007 02:15:59 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 34B994B267; Sun, 18 Mar 2007 21:15:58 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 07D184B262; Sun, 18 Mar 2007 21:15:57 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HT7Ph-0006oS-Et; Sun, 18 Mar 2007 22:15:57 -0400 Date: Mon, 19 Mar 2007 02:16:00 -0000 From: Daniel Jacobowitz To: jagorak Cc: gdb@sourceware.org Subject: Re: Calling an Ada subprogram with complex parameters Message-ID: <20070319021557.GA26173@caradoc.them.org> Mail-Followup-To: jagorak , gdb@sourceware.org References: <1827236609.20070317231124@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1827236609.20070317231124@wp.pl> User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00216.txt.bz2 On Sat, Mar 17, 2007 at 11:11:24PM +0000, jagorak wrote: > where $myRec is a convenience variable of type "Rec", but this > wouldn't work either since convenience variable resides in > gdb-specific memory space, complex types seem to be passed by reference and myProc > cannot access memory address of $myRec. Actually, that's not true - convenience variables which have a memory location are put into the target's memory. Sometimes GDB uses the stack, other times malloc is called under the hood. > Does anyone have any idea how I can solve this problem? Unfortunately not me - maybe Joel will have some helpful advice. I know less Ada than you do, I'm sure :-) -- Daniel Jacobowitz CodeSourcery