Calling an Ada subprogram with complex parameters

jagorak jagorak@wp.pl
Mon Mar 19 18:46:00 GMT 2007


>> 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.





More information about the Gdb mailing list