mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
gdb.texinfo (Values From Inferior): Clarify that
value.dynamic_type works only in C++ programs with RTTI.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-09-22 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* gdb.texinfo (Values From Inferior): Clarify that
|
||||||
|
value.dynamic_type works only in C++ programs with RTTI.
|
||||||
|
|
||||||
2010-09-15 Paul Bolle <pebolle@tiscali.nl>
|
2010-09-15 Paul Bolle <pebolle@tiscali.nl>
|
||||||
|
|
||||||
* gdb.texinfo (Character Sets): Correctly reference host-charset
|
* gdb.texinfo (Character Sets): Correctly reference host-charset
|
||||||
|
@ -20762,12 +20762,18 @@ The type of this @code{gdb.Value}. The value of this attribute is a
|
|||||||
|
|
||||||
@defivar Value dynamic_type
|
@defivar Value dynamic_type
|
||||||
The dynamic type of this @code{gdb.Value}. This uses C@t{++} run-time
|
The dynamic type of this @code{gdb.Value}. This uses C@t{++} run-time
|
||||||
type information to determine the dynamic type of the value. If this
|
type information (@acronym{RTTI}) to determine the dynamic type of the
|
||||||
value is of class type, it will return the class in which the value is
|
value. If this value is of class type, it will return the class in
|
||||||
embedded, if any. If this value is of pointer or reference to a class
|
which the value is embedded, if any. If this value is of pointer or
|
||||||
type, it will compute the dynamic type of the referenced object, and
|
reference to a class type, it will compute the dynamic type of the
|
||||||
return a pointer or reference to that type, respectively. In all
|
referenced object, and return a pointer or reference to that type,
|
||||||
other cases, it will return the value's static type.
|
respectively. In all other cases, it will return the value's static
|
||||||
|
type.
|
||||||
|
|
||||||
|
Note that this feature will only work when debugging a C@t{++} program
|
||||||
|
that includes @acronym{RTTI} for the object in question. Otherwise,
|
||||||
|
it will just return the static type of the value as in @kbd{ptype foo}
|
||||||
|
(@pxref{Symbols, ptype}).
|
||||||
@end defivar
|
@end defivar
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user