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.
This commit is contained in:
parent
442ddf5987
commit
def2b0009c
6 changed files with 57 additions and 6 deletions
|
@ -225,6 +225,9 @@ proc test_value_in_inferior {} {
|
|||
|
||||
# Check that the dereferenced value is sane
|
||||
gdb_test "python print arg0" "0x.*$testfile\"" "verify dereferenced value"
|
||||
|
||||
# Smoke-test is_optimized_out attribute
|
||||
gdb_test "python print 'result =', arg0.is_optimized_out" "= False" "Test is_optimized_out attribute"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue