summaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2015-04-28 17:41:09 -0700
committerDoug Evans <dje@google.com>2015-04-28 17:41:09 -0700
commit59fb7612ddee9219817a0c33b7d533b3d1c2aa41 (patch)
tree242ca16dfed9cf2a96d4bc17f863912d06d556cf /gdb/doc
parent521f2feb982e5e0b7065f5096590c3a92c7c9ec0 (diff)
downloadbinutils-gdb-59fb7612ddee9219817a0c33b7d533b3d1c2aa41.tar.gz
Add gdb.Type.optimized_out method.
gdb/ChangeLog: * NEWS: Mention gdb.Type.optimized_out method. * python/py-type.c (typy_optimized_out): New function. gdb/doc/ChangeLog: * python.texi: New method documented. gdb/testsuite/ChangeLog: * gdb.python/py-type.exp: New test.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/python.texi5
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 5da994333fc..13ca87b33e6 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-28 Sasha Smundak <asmundak@google.com>
+
+ * python.texi: New method documented.
+
2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.texinfo (Dump/Restore Files): Add detail about verilog dump
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 448fa8b2ec9..12d2b71d040 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -1060,6 +1060,11 @@ If @var{block} is given, then @var{name} is looked up in that scope.
Otherwise, it is searched for globally.
@end defun
+@defun Type.optimized_out ()
+Return @code{gdb.Value} instance of this type whose value is optimized
+out. This allows a frame decorator to indicate that the value of an
+argument or a local variable is not known.
+@end defun
Each type has a code, which indicates what category this type falls
into. The available type categories are represented by constants