From 59fb7612ddee9219817a0c33b7d533b3d1c2aa41 Mon Sep 17 00:00:00 2001 From: Sasha Smundak Date: Tue, 28 Apr 2015 17:41:09 -0700 Subject: 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. --- gdb/doc/python.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/doc/python.texi') diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 448fa8b2..12d2b71 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 -- cgit v1.1