From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1306 invoked by alias); 14 Sep 2002 00:25:31 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1298 invoked from network); 14 Sep 2002 00:25:30 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 14 Sep 2002 00:25:30 -0000 Received: from redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 4C242B8831; Fri, 13 Sep 2002 20:25:29 -0400 (EDT) Message-ID: <3D8281AE.8090505@redhat.com> Date: Fri, 13 Sep 2002 17:25:00 -0000 From: Fernando Nasser Organization: Red Hat Canada User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Keith Seitz Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/MI testsuite] gdb/701 test (varobj) References: Content-Type: multipart/mixed; boundary="------------040402060905030103030505" X-SW-Source: 2002-09/txt/msg00285.txt.bz2 This is a multi-part message in MIME format. --------------040402060905030103030505 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Content-length: 307 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 --------------040402060905030103030505 Content-Type: text/plain; name="MI.PATCH" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="MI.PATCH" Content-length: 1475 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 + + * mi-cmd-var.c (varobj_update_one): Get a new handle if type changed. + 2002-09-11 Keith Seitz * 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)); --------------040402060905030103030505--