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

Message ID 20230223002822.3431995-1-raj.khem@gmail.com
State New
Headers
Series gdbserver/linux-low.cc: Fix a typo in ternary operator |

Commit Message

Khem Raj Feb. 23, 2023, 12:28 a.m. UTC
  Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 gdbserver/linux-low.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tom Tromey Feb. 24, 2023, 7:09 p.m. UTC | #1
>>>>> "Khem" == Khem Raj via Gdb-patches <gdb-patches@sourceware.org> writes:

Khem> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem> ---
Khem>  gdbserver/linux-low.cc | 2 +-
Khem>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks.  I'm checking this in.
If you plan to do more work on gdb, let us know, and we can get you
started on the copyright paperwork.

Tom
  

Patch

diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
index 5cd22824e47..a05d7529252 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)