diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-03-26 20:58:11 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-03-26 20:58:11 +0000 |
commit | def2b0009c101b13fad1105c2c10424b35b3117b (patch) | |
tree | d363c19a39e4140b846faf3a176384f72b46f58f /gdb/doc | |
parent | 442ddf5987d97d3d8fc9c3e64449417d4cec3190 (diff) | |
download | gdb-def2b0009c101b13fad1105c2c10424b35b3117b.zip gdb-def2b0009c101b13fad1105c2c10424b35b3117b.tar.gz gdb-def2b0009c101b13fad1105c2c10424b35b3117b.tar.bz2 |
gdb/
Add gdb.Value.is_optimized_out attribute.
* python/python-value.c (valpy_get_is_optimized_out): New
function.
(value_object_getset): New variable.
(value_object_type): Initialize tp_getset element.
gdb/doc/
* gdb.texinfo (Values From Inferior): Document is_optimized_out
attribute.
gdb/testsuite/
* gdb.python/python-value.exp (test_value_in_inferior): Test
gdb.Value.is_optimized_out attribute.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 21 |
2 files changed, 21 insertions, 5 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 2c4b291..beca846 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com> + + * gdb.texinfo (Values From Inferior): Document is_optimized_out + attribute. + 2009-03-25 Pedro Alves <pedro@codesourcery.com> * observer.texi (thread_exit): Add "silent" parameter. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 134919d..8db5679 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18325,13 +18325,23 @@ bar = some_val['foo'] Again, @code{bar} will also be a @code{gdb.Value} object. -For pointer data types, @code{gdb.Value} provides a method for -dereferencing the pointer to obtain the object it points to. +The following attribute is provided: +@table @code +@cindex optimized out value in Python +@defmethod Value is_optimized_out +This read-only boolean attribute is true if the compiler optimized out +this value, thus it is not available for fetching from the inferior. +@end defmethod +@end table + +The following methods are provided: + +@table @code @defmethod Value dereference -This method returns a new @code{gdb.Value} object whose contents is -the object pointed to by the pointer. For example, if @code{foo} is -a C pointer to an @code{int}, declared in your C program as +For pointer data types, this method returns a new @code{gdb.Value} object +whose contents is the object pointed to by the pointer. For example, if +@code{foo} is a C pointer to an @code{int}, declared in your C program as @smallexample int *foo; @@ -18375,6 +18385,7 @@ will be used, if the current language is able to supply one. The optional @var{errors} argument is the same as the corresponding argument to Python's @code{string.decode} method. @end defmethod +@end table @node Commands In Python @subsubsection Commands In Python |