public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdbserver/linux-low.cc: Fix a typo in ternary operator
@ 2023-02-23  0:28 Khem Raj
  2023-02-24 19:09 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2023-02-23  0:28 UTC (permalink / raw)
  To: gdb-patches; +Cc: Khem Raj

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

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)
-- 
2.39.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gdbserver/linux-low.cc: Fix a typo in ternary operator
  2023-02-23  0:28 [PATCH] gdbserver/linux-low.cc: Fix a typo in ternary operator Khem Raj
@ 2023-02-24 19:09 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2023-02-24 19:09 UTC (permalink / raw)
  To: Khem Raj via Gdb-patches; +Cc: Khem Raj

>>>>> "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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-24 19:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23  0:28 [PATCH] gdbserver/linux-low.cc: Fix a typo in ternary operator Khem Raj
2023-02-24 19:09 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).