Re: [RFA/MI testsuite] gdb/701 test (varobj)

Fernando Nasser
2002-09-14T00:25:31Z

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

As you are at it, canyou take a look at this old patch of mine that I've
found lost in a branch.... Something should be broken without it!

Regards,
Fernando

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

[-- Attachment #2: MI.PATCH --]
[-- Type: text/plain, Size: 1475 bytes --]

Index: mi/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/mi/ChangeLog,v
retrieving revision 1.69
diff -c -p -r1.69 ChangeLog
*** mi/ChangeLog 11 Sep 2002 21:49:04 -0000 1.69
--- mi/ChangeLog 14 Sep 2002 00:23:46 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2001-01-27 Fernando Nasser <fnasser@redhat.com>
+
+ * mi-cmd-var.c (varobj_update_one): Get a new handle if type changed.
+
2002-09-11 Keith Seitz <keiths@redhat.com>

* mi-main.c (mi_cmd_data_list_register_names): Use cleanups
Index: mi/mi-cmd-var.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmd-var.c,v
retrieving revision 1.12
diff -c -p -r1.12 mi-cmd-var.c
*** mi/mi-cmd-var.c 30 Jul 2002 13:45:15 -0000 1.12
--- mi/mi-cmd-var.c 14 Sep 2002 00:23:46 -0000
*************** varobj_update_one (struct varobj *var)
*** 458,463 ****
--- 458,464 ----
struct varobj **changelist;
struct varobj **cc;
int nc;
+ char *varname = varobj_get_objname(var);

nc = varobj_update (&var, &changelist);

*************** varobj_update_one (struct varobj *var)
*** 475,480 ****
--- 476,482 ----
}
else if (nc == -2)
{
+ var = varobj_get_handle (varname);
ui_out_field_string (uiout, "name", varobj_get_objname (var));
ui_out_field_string (uiout, "in_scope", "true");
ui_out_field_string (uiout, "new_type", varobj_get_type(var));