mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user