This is the mail archive of the
mailing list for the GDB project.
Re: Calling an Ada subprogram with complex parameters
- From: Daniel Jacobowitz <drow at false dot org>
- To: jagorak <jagorak at wp dot pl>
- Cc: gdb at sourceware dot org
- Date: Sun, 18 Mar 2007 22:15:57 -0400
- Subject: Re: Calling an Ada subprogram with complex parameters
- References: <firstname.lastname@example.org>
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 :-)