From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18397 invoked by alias); 16 Jan 2004 22:04:24 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18375 invoked from network); 16 Jan 2004 22:04:22 -0000 Received: from unknown (HELO uniton.integrable-solutions.net) (62.212.99.186) by sources.redhat.com with SMTP; 16 Jan 2004 22:04:22 -0000 Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id i0GLvo9b027679; Fri, 16 Jan 2004 22:57:50 +0100 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.3/8.12.3/Submit) id i0GLvhJQ027678; Fri, 16 Jan 2004 22:57:43 +0100 X-Authentication-Warning: uniton.integrable-solutions.net: gdr set sender to gdr@integrable-solutions.net using -f To: Eli Zaretskii Cc: mec.gnu@mindspring.com (Michael Elizabeth Chastain), marcel.lanz@ds9.ch, gdb@sources.redhat.com Subject: Re: gdb, c++ & namespaces References: <20040114141730.72F934B104@berman.michael-chastain.com> <9743-Thu15Jan2004095829+0200-eliz@elta.co.il> From: Gabriel Dos Reis In-Reply-To: <9743-Thu15Jan2004095829+0200-eliz@elta.co.il> Organization: Integrable Solutions Date: Fri, 16 Jan 2004 22:04:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-01/txt/msg00214.txt.bz2 "Eli Zaretskii" writes: | > Date: Wed, 14 Jan 2004 09:17:30 -0500 (EST) | > From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) | > | > (gdb) set print object off | > (gdb) print *dp | > (gdb) set print object on | > (gdb) print *dp | > | > When "set print object" is off, gdb will print an object of the type | > of the pointer (we call this the "static type"). When "set print object" | > is on, gdb will print the type of the object in memory (we call this | > the "dynamic type". | | The manual doesn't mention "static type" and "dynamic type" in the | section that describes "set pruint". I think it should, if this | terminology is to be widely accepted. The phrases "static type" and "dynamic type" are standard terms with precise meanings used to describe Standard C++. "static type" is the type of the expression, as determined by static analysis (i.e. at compile-time) to access and object. "dynamic type" is what the C standard would call the "effective type". It is the type of the object as determined at its construction/creation. See the first chapter of the C++ standard. -- Gaby