gdbserver/linux-low.cc: Fix a typo in ternary operator

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2023-02-22 16:28:22 -08:00 committed by Tom Tromey
parent 147699fd69
commit 2e977d9901

View File

@ -5390,7 +5390,7 @@ proc_xfer_memory (CORE_ADDR memaddr, unsigned char *readbuf,
if (lseek (fd, memaddr, SEEK_SET) != -1)
bytes = (readbuf != nullptr
? read (fd, readbuf, len)
? write (fd, writebuf, len));
: write (fd, writebuf, len));
#endif
if (bytes < 0)