From: Khem Raj Date: Thu, 23 Feb 2023 00:28:22 +0000 (-0800) Subject: gdbserver/linux-low.cc: Fix a typo in ternary operator X-Git-Tag: gdb-13.2-release~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=186143c39ed1c619c222e194cb33b927768a9026;p=thirdparty%2Fbinutils-gdb.git gdbserver/linux-low.cc: Fix a typo in ternary operator Signed-off-by: Khem Raj (cherry picked from commit 2e977d9901393ea1bacbe1896af0929e968bc811) Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30450 --- diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 7e1de397893..95ec871d436 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)