FYI: Another fix to varobj.c

Fernando Nasser fnasser@cygnus.com
Fri Oct 13 13:42:00 GMT 2000


I comitted another fix:

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.

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9



Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.9
diff -c -p -r1.9 varobj.c
*** varobj.c    2000/10/13 20:31:38     1.9
--- varobj.c    2000/10/13 20:42:20
*************** type_changeable (struct varobj *var)
*** 1726,1731 ****
--- 1726,1732 ----
      {
        case TYPE_CODE_STRUCT:
        case TYPE_CODE_UNION:
+       case TYPE_CODE_ARRAY:
        r = 0;
        break;


More information about the Gdb mailing list