aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-08-23 20:29:19 +0000
committerTom Tromey <tromey@redhat.com>2010-08-23 20:29:19 +0000
commitf9ffd4bb11c401df4c0c5733e946c48d6b295c5e (patch)
treee703cf5f4d37e888044a224d8b4a2ce06118e5da /gdb/doc
parent9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce (diff)
downloadgdb-f9ffd4bb11c401df4c0c5733e946c48d6b295c5e.zip
gdb-f9ffd4bb11c401df4c0c5733e946c48d6b295c5e.tar.gz
gdb-f9ffd4bb11c401df4c0c5733e946c48d6b295c5e.tar.bz2
gdb
PR python/11145: * python/py-value.c: Include expression.h. (valpy_do_cast): New function. (valpy_cast): Use it. (valpy_dynamic_cast): New function. (valpy_reinterpret_cast): Likewise. (value_object_methods): Add dynamic_cast, reinterpret_cast. gdb/doc PR python/11145: * gdb.texinfo (Values From Inferior): Document dynamic_cast and reinterpret_cast methods. gdb/testsuite PR python/11145: * gdb.python/py-value.c (Base, Derived): New types. (base): New global. * gdb.python/py-value.exp (test_subscript_regression): Add dynamic_cast test.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 82e73e5..a864e2f 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,11 @@
2010-08-23 Tom Tromey <tromey@redhat.com>
+ PR python/11145:
+ * gdb.texinfo (Values From Inferior): Document dynamic_cast and
+ reinterpret_cast methods.
+
+2010-08-23 Tom Tromey <tromey@redhat.com>
+
PR python/11915:
* gdb.texinfo (Types In Python): Document array method.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index d1eba6f..d0c7ddd 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20792,6 +20792,16 @@ The result @code{bar} will be a @code{gdb.Value} object holding the
value pointed to by @code{foo}.
@end defmethod
+@defmethod Value dynamic_cast type
+Like @code{Value.cast}, but works as if the C@t{++} @code{dynamic_cast}
+operator were used. Consult a C@t{++} reference for details.
+@end defmethod
+
+@defmethod Value reinterpret_cast type
+Like @code{Value.cast}, but works as if the C@t{++} @code{reinterpret_cast}
+operator were used. Consult a C@t{++} reference for details.
+@end defmethod
+
@defmethod Value string @r{[}encoding@r{]} @r{[}errors@r{]} @r{[}length@r{]}
If this @code{gdb.Value} represents a string, then this method
converts the contents to a Python string. Otherwise, this method will