[patch] monitor.c fix for rom68k target boards
Jeff Holcomb
jeffh@redhat.com
Thu Apr 5 10:44:00 GMT 2001
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);
More information about the Gdb-patches
mailing list