]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver/linux-low.cc: Fix a typo in ternary operator
authorKhem Raj <raj.khem@gmail.com>
Thu, 23 Feb 2023 00:28:22 +0000 (16:28 -0800)
committerTom Tromey <tromey@adacore.com>
Tue, 16 May 2023 16:52:49 +0000 (10:52 -0600)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2e977d9901393ea1bacbe1896af0929e968bc811)
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30450

gdbserver/linux-low.cc

index 7e1de3978933427f9bcf784691126ca22aaf6300..95ec871d4364e00cd4639904f700f413f82e4b8b 100644 (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)