[COMMITTED PATCH] gdb: LoongArch: Implement the return_value gdbarch method
Tiezhu Yang
yangtiezhu@loongson.cn
Tue May 10 12:49:42 GMT 2022
On 05/10/2022 05:19 PM, Andrew Burgess wrote:
> Tiezhu Yang <yangtiezhu@loongson.cn> writes:
>
>> + /* Extract the return value from the register where it was stored. */
>> + if (readbuf)
>> + regcache->raw_read_part (regnum, 0, len, readbuf);
>> + if (writebuf)
>> + regcache->raw_write_part (regnum, 0, len, writebuf);
>
> The GDB style is to write 'if (readbuf != nullptr)', and the same for
> writebuf.
>
> Thanks,
> Andrew
Hi Andrew,
Thank you for your kindly reply, sorry for that, I will modify it
as soon as possible.
Thanks,
Tiezhu
More information about the Gdb-patches
mailing list