This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] gdbserver support for qCRC: (compare-sections)


On Tuesday 23 March 2010 23:14:57, Pedro Alves wrote:
> You meant to make that an assignment, not a comparison.
> Thou shall always test what you commit.  ;-)

Since I'm all over gdbserver, I went ahead fixed this.

-- 
Pedro Alves

2010-03-24  Pedro Alves  <pedro@codesourcery.com>

	* server.c (handle_query): Assign, not compare.

---
 gdb/gdbserver/server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: src/gdb/gdbserver/server.c
===================================================================
--- src.orig/gdb/gdbserver/server.c	2010-03-24 00:08:10.000000000 +0000
+++ src/gdb/gdbserver/server.c	2010-03-24 00:09:49.000000000 +0000
@@ -1471,7 +1471,7 @@ handle_query (char *own_buf, int packet_
       unsigned long long crc;
 
       require_running (own_buf);
-      base == strtoul (own_buf + 5, &comma, 16);
+      base = strtoul (own_buf + 5, &comma, 16);
       if (*comma++ != ',')
 	{
 	  write_enn (own_buf);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]