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.
This commit is contained in:
Sasha Smundak
2015-04-28 17:41:09 -07:00
committed by Doug Evans
parent 521f2feb98
commit 59fb7612dd
7 changed files with 36 additions and 0 deletions

View File

@@ -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