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

Pedro Alves pedro@codesourcery.com
Wed Mar 24 00:16:00 GMT 2010


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



More information about the Gdb-patches mailing list