2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
authorFernando Nasser <fnasser@redhat.com>
Fri, 13 Oct 2000 20:42:55 +0000 (20:42 +0000)
committerFernando Nasser <fnasser@redhat.com>
Fri, 13 Oct 2000 20:42:55 +0000 (20:42 +0000)
* 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.

gdb/ChangeLog
gdb/varobj.c

index d4a44bb..9614491 100644 (file)
@@ -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.
index b1c44a0..fe3f940 100644 (file)
@@ -1726,6 +1726,7 @@ type_changeable (struct varobj *var)
     {
       case TYPE_CODE_STRUCT:
       case TYPE_CODE_UNION:
+      case TYPE_CODE_ARRAY:
        r = 0;
        break;