diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-03-29 21:11:11 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-03-29 21:11:11 +0000 |
commit | c0c6f77785d5f523f929919b66cf90bcd273a9fe (patch) | |
tree | edc6c9f326c1edbb4823fff90eadeac7bceb9469 /gdb/doc | |
parent | 3cb51905575ddbdc88eee13144b537d222e61cb4 (diff) | |
download | gdb-c0c6f77785d5f523f929919b66cf90bcd273a9fe.zip gdb-c0c6f77785d5f523f929919b66cf90bcd273a9fe.tar.gz gdb-c0c6f77785d5f523f929919b66cf90bcd273a9fe.tar.bz2 |
gdb/
Change gdb.Value.address from a method to an attribute.
* python/python-value.c (value_object): Add `address' element.
(valpy_dealloc): Decrement reference to self->address if set.
(valpy_new): Initialize val_obj->address.
(valpy_address): Rename to ...
(valpy_get_address): ... this. Change signature from method to
attribute. Update self->address if not set.
(value_to_value_object): Initialize val_obj->address.
(value_object_getset): Add `address' element.
(value_object_methods): Remove `address' element.
gdb/testsuite/
* gdb.python/python-value.exp: Add tests for the address
attribute.
gdb/doc/
* gdb.texinfo (Values From Inferior): Change gdb.Value.address
from a method to an attribute.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index beca846..aa1d564 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com> + + * gdb.texinfo (Values From Inferior): Change gdb.Value.address + from a method to an attribute. + 2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (Values From Inferior): Document is_optimized_out diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 8db5679..0dff6e0 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18325,9 +18325,15 @@ bar = some_val['foo'] Again, @code{bar} will also be a @code{gdb.Value} object. -The following attribute is provided: +The following attributes are provided: @table @code +@defmethod Value address +If this object is addressable, this read-only attribute holds a +@code{gdb.Value} object representing the address. Otherwise, +this attribute holds @code{None}. +@end defmethod + @cindex optimized out value in Python @defmethod Value is_optimized_out This read-only boolean attribute is true if the compiler optimized out |