This is the mail archive of the gdb-patches@sources.redhat.com 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]

[patch] monitor.c fix for rom68k target boards


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


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