diff options
author | Don Breazeal <donb@codesourcery.com> | 2016-04-06 14:01:50 -0700 |
---|---|---|
committer | Don Breazeal <donb@codesourcery.com> | 2016-04-06 14:30:20 -0700 |
commit | b16f8a3b1ecce592fe331a5b1ce6632951350e9c (patch) | |
tree | 067184e9eac8c3bd29fca879cb8f0293d842b80f /gdb/p-exp.y | |
parent | c2f901dfb6cb5ae2845a48503df1fe0065085f83 (diff) | |
download | gdb-b16f8a3b1ecce592fe331a5b1ce6632951350e9c.zip gdb-b16f8a3b1ecce592fe331a5b1ce6632951350e9c.tar.gz gdb-b16f8a3b1ecce592fe331a5b1ce6632951350e9c.tar.bz2 |
Optimized-out pointer: New test for error handling
This patch implements a test that ensures that with "set print object
on", -var-create returns "<optimized out>" for an optimized out pointer
to structure, rather than throwing an error, while also ensuring that
any attempt to dereference the pointer *will* throw an error.
It uses the dwarf assembler to construct the appropriate debug info
to represent a pointer-to-struct in the program as optimized out,
and then accesses that pointer in various ways. The test uses both
the console interpreter and the MI interpreter.
gdb/testsuite/ChangeLog:
2016-04-06 Don Breazeal <donb@codesourcery.com>
* gdb.dwarf2/dw2-opt-structptr.c: New test program.
* gdb.dwarf2/dw2-opt-structptr.exp: New test script.
Diffstat (limited to 'gdb/p-exp.y')
0 files changed, 0 insertions, 0 deletions