This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb, c++ & namespaces
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- Cc: marcel dot lanz at ds9 dot ch, gdb at sources dot redhat dot com
- Date: Thu, 15 Jan 2004 09:58:30 +0200
- Subject: Re: gdb, c++ & namespaces
- References: <20040114141730.72F934B104@berman.michael-chastain.com>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> 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.