This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] monitor.c fix for rom68k target boards
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] monitor.c fix for rom68k target boards
- From: Jeff Holcomb <jeffh at redhat dot com>
- Date: Thu, 5 Apr 2001 10:44:10 -0700 (PDT)
On Wed, 4 Apr 2001, Andrew Cagney wrote:
> I don't think it was intentional. Any way, assume your patch is
> approved with the tweeked test.
Here's the patch I checked in:
2001-04-05 Jeff Holcomb <jeffh@redhat.com>
* monitor.c (monitor_supply_register): Only report an error if we
don't get a valid value.
Index: monitor.c
===================================================================
RCS file: /cvs/src/src/gdb/monitor.c,v
retrieving revision 1.22
diff -u -p -r1.22 monitor.c
--- monitor.c 2001/03/28 21:42:31 1.22
+++ monitor.c 2001/04/05 17:42:19
@@ -906,7 +906,7 @@ monitor_supply_register (int regno, char
}
monitor_debug ("Supplying Register %d %s\n", regno, valstr);
- if (*p != '\0')
+ if (val == 0 && valstr == p)
error ("monitor_supply_register (%d): bad value from monitor: %s.",
regno, valstr);