From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9494 invoked by alias); 19 Mar 2007 16:35:38 -0000 Received: (qmail 9313 invoked by uid 22791); 19 Mar 2007 16:35:36 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Mar 2007 16:35:26 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 84EB248CEA7; Mon, 19 Mar 2007 12:35:24 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19337-01-9; Mon, 19 Mar 2007 12:35:24 -0400 (EDT) Received: from joel.gnat.com (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 1BD1548CC8A; Mon, 19 Mar 2007 12:35:24 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 03496E7B39; Mon, 19 Mar 2007 09:36:13 -0700 (PDT) Date: Mon, 19 Mar 2007 16:35:00 -0000 From: Joel Brobecker To: jagorak Cc: gdb@sourceware.org Subject: Re: Calling an Ada subprogram with complex parameters Message-ID: <20070319163613.GI3485@adacore.com> References: <1827236609.20070317231124@wp.pl> <5416595812.20070318171038@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5416595812.20070318171038@wp.pl> User-Agent: Mutt/1.4.2.2i 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/msg00217.txt.bz2 > I've managed to work out how to make GDB treat an address as if > data there was of specific type and make a call accordingly. > > > (gdb) set ({Rec} 0xABCDEF00).a := false > (gdb) set ({Rec} 0xABCDEF00).b := 55 > (gdb) call myProc({Rec} *0xABCDEF00)) That's indeed what I would recommend. Just for the record, I verified that the relevant info is in the GDB documentation. -- Joel