aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-10-13 20:42:55 +0000
committerFernando Nasser <fnasser@redhat.com>2000-10-13 20:42:55 +0000
commita80aa921bfcae6aa535e3a85701d81c63f2bf77a (patch)
treea135a26d2782d47d0bac363adea8c748e732ba6a /gdb
parent102c86f873ed268a64171df595ed9eadb54c7e24 (diff)
downloadgdb-a80aa921bfcae6aa535e3a85701d81c63f2bf77a.zip
gdb-a80aa921bfcae6aa535e3a85701d81c63f2bf77a.tar.gz
gdb-a80aa921bfcae6aa535e3a85701d81c63f2bf77a.tar.bz2
2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
* varobj.c (type_changeable): Arrays are not changeable. Trying to check for updates was causing an error if the array lived in a register as gdb value_equal() cannot handle that case yet.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/varobj.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d4a44bb..9614491 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
+ * varobj.c (type_changeable): Arrays are not changeable.
+ Trying to check for updates was causing an error if the array lived
+ in a register as gdb value_equal() cannot handle that case yet.
+
+2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
+
* varobj.c (varobj_update): Prevent uninitialized error code to be
returned on type_changed. Also, prevent value_equal() to be called
for the types we do not want to test for updates.
diff --git a/gdb/varobj.c b/gdb/varobj.c
index b1c44a0..fe3f940 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1726,6 +1726,7 @@ type_changeable (struct varobj *var)
{
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
+ case TYPE_CODE_ARRAY:
r = 0;
break;