From: Jeff Holcomb Date: Thu, 5 Apr 2001 17:44:06 +0000 (+0000) Subject: 2001-04-05 Jeff Holcomb X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fcef334200c9ff04b3790e48e36ae7d74118e8e;p=binutils-gdb.git 2001-04-05 Jeff Holcomb * monitor.c (monitor_supply_register): Only report an error if we don't get a valid value. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e25383b8d3..200bbaadbf8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-04-05 Jeff Holcomb + + * monitor.c (monitor_supply_register): Only report an error if we + don't get a valid value. + 2001-04-05 Eli Zaretskii * README: Don't mention gdba.el. diff --git a/gdb/monitor.c b/gdb/monitor.c index 78746b771d6..e3a74dc9207 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -906,7 +906,7 @@ monitor_supply_register (int regno, char *valstr) } 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);