From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26463 invoked by alias); 19 Mar 2007 18:46:57 -0000 Received: (qmail 26335 invoked from network); 19 Mar 2007 18:46:41 -0000 Received: from unknown (212.77.101.9) by sourceware.org with QMTP; 19 Mar 2007 18:46:41 -0000 Received: (wp-smtpd smtp.wp.pl 15034 invoked from network); 19 Mar 2007 19:46:31 +0100 Received: from host86-128-14-58.range86-128.btcentralplus.com (HELO BIGOS) (jagorak@[86.128.14.58]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 19 Mar 2007 19:46:31 +0100 Date: Mon, 19 Mar 2007 18:46:00 -0000 From: jagorak X-Mailer: Private Mailer 1.0 Reply-To: jagorak Message-ID: <115530140.20070319184629@wp.pl> To: Joel Brobecker CC: gdb@sourceware.org Subject: Re[2]: Calling an Ada subprogram with complex parameters In-Reply-To: <20070319163613.GI3485@adacore.com> References: <1827236609.20070317231124@wp.pl> <5416595812.20070318171038@wp.pl> <20070319163613.GI3485@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 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/msg00218.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)) JB> That's indeed what I would recommend. Just for the record, I verified JB> that the relevant info is in the GDB documentation. Indeed it is in the manual - somehow I had missed that. Thanks.