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


> 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


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