diff options
author | Anton Gorenkov <xgsa@sourceware.org> | 2012-04-14 12:18:50 +0000 |
---|---|---|
committer | Anton Gorenkov <xgsa@sourceware.org> | 2012-04-14 12:18:50 +0000 |
commit | 8264ba82b71a186e10fddc298c5eb6e68742a94a (patch) | |
tree | 6a127bac3d88db9846b9b2db0a98a21fd31b7f0c /gdb/doc | |
parent | 5f18041e78f879768645b113054261313517234a (diff) | |
download | gdb-8264ba82b71a186e10fddc298c5eb6e68742a94a.zip gdb-8264ba82b71a186e10fddc298c5eb6e68742a94a.tar.gz gdb-8264ba82b71a186e10fddc298c5eb6e68742a94a.tar.bz2 |
gdb/doc/ChangeLog:
2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
PR mi/13393
* gdb.texinfo (Print Settings): Extend the description for "set print
object".
(GDB/MI Variable Objects): Extend the description for -var-create and
-var-list-children.
gdb/testsuite/ChangeLog:
2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
PR mi/13393
* gdb.mi/mi-var-rtti.cc: New file.
* gdb.mi/mi-var-rtti.exp: New file.
* lib/mi-support.exp (mi_varobj_update_with_child_type_change): New
function.
(mi_varobj_update_with_type_change): updated to avoid code duplication.
gdb/ChangeLog:
2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
PR mi/13393
* value.c (value_actual_type): New function.
* value.h (value_actual_type): New declaration.
* varobj.c (update_type_if_necessary): New function.
(varobj_create): Call value_actual_type instead of
value_type.
(install_dynamic_child): distinct changed and type changed MI variable
objects.
(update_dynamic_varobj_children): Updated for install_dynamic_child
change. All callers updated.
(varobj_update): Support for MI variable object type change if
the value changed and RTTI is used to determine the type.
(create_child_with_value): Call value_actual_type instead of
value_type.
(adjust_value_for_child_access): Extended with a new parameter which
specify whether the given value should be casted to enclosing type.
All callers updated.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
2 files changed, 18 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index ecb3409..e288b9e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,11 @@ +2012-04-14 Anton Gorenkov <xgsa@yandex.ru> + + PR mi/13393 + * gdb.texinfo (Print Settings): Extend the description for "set print + object". + (GDB/MI Variable Objects): Extend the description for -var-create and + -var-list-children. + 2012-04-11 Siva Chandra Reddy <sivachandra@google.com> * gdb.texinfo (Examining Data): Document the 'explore' command. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 37ffbb1..613782e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -8666,7 +8666,8 @@ When displaying a pointer to an object, identify the @emph{actual} the virtual function table. Note that the virtual function table is required---this feature can only work for objects that have run-time type identification; a single virtual method in the object's declared -type is sufficient. +type is sufficient. Note that this setting is also taken into account when +working with variable objects via MI (@pxref{GDB/MI}). @item set print object off Display only the declared type of objects, without reference to the @@ -29103,7 +29104,10 @@ will not be interesting. @item type The varobj's type. This is a string representation of the type, as -would be printed by the @value{GDBN} CLI. +would be printed by the @value{GDBN} CLI. If @samp{print object} +(@pxref{Print Settings, set print object}) is set to @code{on}, the +@emph{actual} (derived) type of the object is shown rather than the +@emph{declared} one. @item thread-id If a variable object is bound to a specific thread, then this is the @@ -29274,7 +29278,10 @@ Number of children this child has. For a dynamic varobj, this will be 0. @item type -The type of the child. +The type of the child. If @samp{print object} +(@pxref{Print Settings, set print object}) is set to @code{on}, the +@emph{actual} (derived) type of the object is shown rather than the +@emph{declared} one. @item value If values were requested, this is the value. |