mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
gdb: LoongArch: Use GDB style to check readbuf and writebuf
The GDB style is to write 'if (readbuf != nullptr)', and the same for writebuf. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
This commit is contained in:
parent
20c4eb4226
commit
2c3c88db12
@ -269,9 +269,9 @@ loongarch_return_value (struct gdbarch *gdbarch, struct value *function,
|
||||
}
|
||||
|
||||
/* Extract the return value from the register where it was stored. */
|
||||
if (readbuf)
|
||||
if (readbuf != nullptr)
|
||||
regcache->raw_read_part (regnum, 0, len, readbuf);
|
||||
if (writebuf)
|
||||
if (writebuf != nullptr)
|
||||
regcache->raw_write_part (regnum, 0, len, writebuf);
|
||||
|
||||
return RETURN_VALUE_REGISTER_CONVENTION;
|
||||
|
Loading…
Reference in New Issue
Block a user