mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
gdbserver/linux-low.cc: Fix a typo in ternary operator
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@ -5390,7 +5390,7 @@ proc_xfer_memory (CORE_ADDR memaddr, unsigned char *readbuf,
|
|||||||
if (lseek (fd, memaddr, SEEK_SET) != -1)
|
if (lseek (fd, memaddr, SEEK_SET) != -1)
|
||||||
bytes = (readbuf != nullptr
|
bytes = (readbuf != nullptr
|
||||||
? read (fd, readbuf, len)
|
? read (fd, readbuf, len)
|
||||||
? write (fd, writebuf, len));
|
: write (fd, writebuf, len));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (bytes < 0)
|
if (bytes < 0)
|
||||||
|
Reference in New Issue
Block a user