This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling an Ada subprogram with complex parameters


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]