From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27639 invoked by alias); 23 Feb 2012 04:24:43 -0000 Received: (qmail 27618 invoked by uid 22791); 23 Feb 2012 04:24:40 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_JMF_BL,SARE_HELO_EQ_CUST X-Spam-Check-By: sourceware.org Received: from forward4.mail.yandex.net (HELO forward4.mail.yandex.net) (77.88.46.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 04:24:24 +0000 Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward4.mail.yandex.net (Yandex) with ESMTP id 8AE6C50151A; Thu, 23 Feb 2012 08:24:21 +0400 (MSK) Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id 60548AA03A4; Thu, 23 Feb 2012 08:24:21 +0400 (MSK) Received: from ageevich.customer.itl.net.ua (ageevich.customer.itl.net.ua [217.12.203.24]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id OKUi7Qgk-OKUK1WaG; Thu, 23 Feb 2012 08:24:21 +0400 X-Yandex-Spam: 1 Message-ID: <4F45BF8B.70009@yandex.ru> Date: Thu, 23 Feb 2012 04:58:00 -0000 From: xgsa User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.26) Gecko/20120131 Thunderbird/3.1.18 MIME-Version: 1.0 To: Tom Tromey CC: gdb-patches@sourceware.org Subject: Re: set print object on should affect MI varobjs (PR mi/13393) References: <4ED92C05.9080803@yandex.ru> <4EF22A4D.80703@yandex.ru> <20111221193630.GA28985@host2.jankratochvil.net> <4EF30389.5010008@yandex.ru> <20111223200951.GA19581@host2.jankratochvil.net> <4EF5D1C5.5010902@yandex.ru> <20120102022153.GA686@host2.jankratochvil.net> <4F07177C.5080201@yandex.ru> <4F32C009.2050103@yandex.ru> <87pqdma1mo.fsf@fleche.redhat.com> <4F412637.2010405@yandex.ru> In-Reply-To: <4F412637.2010405@yandex.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00495.txt.bz2 Ping. Can anybody look at this patch? BTW, the first part has already been checked in, so this patch could be applied on HEAD. And one more question connected to these changes. Should I update documentation somehow (e.g. add some notes to the "show/set print object" commands description or to MI interface chapter)? Thanks, Anton -------- Original message -------- > As the first patch was approved (not checked in though cause my > account hasn't been created yet) here is the second part of the > changes. Note, that this patch relies on changes from the previous one. > > > Thanks, > Anton > > > gdb/testsuite/ChangeLog: > > 2011-12-02 Anton Gorenkov > > PR mi/13393 > > * gdb.mi/mi-var-rtti.cc: New file. > * gdb.mi/mi-var-rtti.exp: New file. > > gdb/ChangeLog: > > 2011-12-02 Anton Gorenkov > > PR mi/13393 > > * value.c (value_actual_type): New function. > * value.h (value_actual_type): New declaration. > * varobj.c (varobj_create): Call value_actual_type instead of > value_type. > (create_child_with_value): Call value_actual_type instead of > value_type. > (value_of_root): Support for type change if the value changed > and RTTI > is used to determine the type. > (adjust_value_for_child_access): Extended with a new parameter > and cast > given value to enclosing type if it is set. > (c_number_of_children): Updated for extended > adjust_value_for_child_access. > (c_describe_child): Updated for extended > adjust_value_for_child_access. > (cplus_number_of_children): Updated for extended > adjust_value_for_child_access. > (cplus_describe_child): Updated for extended > adjust_value_for_child_access. > >