diff options
author | Tom Tromey <tromey@redhat.com> | 2010-08-30 20:28:31 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-08-30 20:28:31 +0000 |
commit | 03f17ccfe196bd03d370b5c0d9983b8d8eed12d7 (patch) | |
tree | 56c6e9dbfdf091fd6ac9aca69cc9a4914ee50c1c /gdb/doc | |
parent | 640617ad17a526e78796054d1da3d652ae5c8dc9 (diff) | |
download | gdb-03f17ccfe196bd03d370b5c0d9983b8d8eed12d7.zip gdb-03f17ccfe196bd03d370b5c0d9983b8d8eed12d7.tar.gz gdb-03f17ccfe196bd03d370b5c0d9983b8d8eed12d7.tar.bz2 |
gdb
2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
Tom Tromey <tromey@redhat.com>
PR python/11792:
* python/py-value.c (valpy_get_dynamic_type): New function.
(value_object_getset): Add "dynamic_type".
(valpy_get_type): Fail on error.
gdb/doc
PR python/11792:
* gdb.texinfo (Values From Inferior): Document dynamic_type.
gdb/testsuite
PR python/11792:
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_type test.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 634cc9d..ac8f6e9 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-30 Tom Tromey <tromey@redhat.com> + + PR python/11792: + * gdb.texinfo (Values From Inferior): Document dynamic_type. + 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com> * gdb.texinfo (ARM Features): Document diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 3418eb2..393c8b7 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -20759,6 +20759,16 @@ this value, thus it is not available for fetching from the inferior. The type of this @code{gdb.Value}. The value of this attribute is a @code{gdb.Type} object. @end defivar + +@defivar Value dynamic_type +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 +value is of class type, it will return the class in which the value is +embedded, if any. If this value is of pointer or reference to a class +type, it will compute the dynamic type of the referenced object, and +return a pointer or reference to that type, respectively. In all +other cases, it will return the value's static type. +@end defivar @end table The following methods are provided: |