This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re[2]: 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))
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.