diff options
author | Sasha Smundak <asmundak@google.com> | 2015-04-28 17:41:09 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-04-28 17:41:09 -0700 |
commit | 59fb7612ddee9219817a0c33b7d533b3d1c2aa41 (patch) | |
tree | 242ca16dfed9cf2a96d4bc17f863912d06d556cf /gdb/testsuite | |
parent | 521f2feb982e5e0b7065f5096590c3a92c7c9ec0 (diff) | |
download | binutils-gdb-59fb7612ddee9219817a0c33b7d533b3d1c2aa41.tar.gz |
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-type.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1967acae149..80d88cfed94 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-04-28 Sasha Smundak <asmundak@google.com> + + * gdb.python/py-type.exp: New test. + 2015-04-28 Andy Wingo <wingo@igalia.com> * gdb.python/py-parameter.exp: diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp index 9e522f23221..58a2394da70 100644 --- a/gdb/testsuite/gdb.python/py-type.exp +++ b/gdb/testsuite/gdb.python/py-type.exp @@ -253,6 +253,9 @@ gdb_test "python print(gdb.lookup_type('char').array(1, 0))" \ gdb_test "python print(gdb.lookup_type('char').array(1, -1))" \ "Array length must not be negative.*" +gdb_test "python print(gdb.lookup_type('int').optimized_out())" \ + "<optimized out>" + with_test_prefix "lang_c" { runto_bp "break to inspect struct and array." test_fields "c" |