From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9649 invoked by alias); 27 Sep 2009 17:14:34 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 9635 invoked by uid 22791); 27 Sep 2009 17:14:32 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4ABF9D6E.8020606@redhat.com> Date: Sun, 27 Sep 2009 17:14:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 MIME-Version: 1.0 To: Jan Kratochvil CC: archer@sourceware.org Subject: Re: set print objct pros/cons [Re: [Keith Seitz] Re: [tools-team] Status 2008-09-01] References: <6d1764b50909230708l60a4be26ocf3bf6aef198710@mail.gmail.com> <6d1764b50909251238i6471fcacreea5cfbab57cdd2d@mail.gmail.com> <20090927122147.GA15789@host0.dyn.jankratochvil.net> In-Reply-To: <20090927122147.GA15789@host0.dyn.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2009-q3/txt/msg00258.txt.bz2 On 09/27/2009 05:21 AM, Jan Kratochvil wrote: > > (1) Last "call basep->m ()" should have printed "derived::m" > because "p basep->m" prints "Derived::m()", shouldn't it? > basep->m will always print "base::m" -- your test case did not declare Base::m virtual. Or is that just an omission in the file you attached? > (2) A lookup can succeed in both "off" and "on" cases with different results. Indeed. I believe gdb should stick to the language rules, "print object" or not. We need to break the unwritten gdb development rule that everything must have a freakin' switch in the debugger. It's unscalable/unmanageable/user-unfriendly. IMO, "object print" should not even exist at all. Keith