aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-02-22 16:28:22 -0800
committerTom Tromey <tromey@adacore.com>2023-02-24 12:09:05 -0700
commit2e977d9901393ea1bacbe1896af0929e968bc811 (patch)
tree3fad38b08aa0fe7365b1a34fdc3985f78cfb27de /gdbserver
parent147699fd6991ae67fc22ca543a28f85a242fc930 (diff)
downloadgdb-2e977d9901393ea1bacbe1896af0929e968bc811.zip
gdb-2e977d9901393ea1bacbe1896af0929e968bc811.tar.gz
gdb-2e977d9901393ea1bacbe1896af0929e968bc811.tar.bz2
gdbserver/linux-low.cc: Fix a typo in ternary operator
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/linux-low.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
index 4328fed..dec1944 100644
--- a/gdbserver/linux-low.cc
+++ b/gdbserver/linux-low.cc
@@ -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)