aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorJeff Holcomb <jeffh@redhat.com>2001-04-05 17:44:06 +0000
committerJeff Holcomb <jeffh@redhat.com>2001-04-05 17:44:06 +0000
commit1fcef334200c9ff04b3790e48e36ae7d74118e8e (patch)
treeb80c347d895f3000ef36bc23ae97ece442017a44 /gdb/monitor.c
parentf032fb6e9ea0ae5b9a26c2d1e3a2e268268d12ef (diff)
downloadgdb-1fcef334200c9ff04b3790e48e36ae7d74118e8e.zip
gdb-1fcef334200c9ff04b3790e48e36ae7d74118e8e.tar.gz
gdb-1fcef334200c9ff04b3790e48e36ae7d74118e8e.tar.bz2
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.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 78746b7..e3a74dc 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);