diff options
author | Kevin Buettner <kevinb@redhat.com> | 2016-09-26 15:00:37 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2016-11-16 11:37:11 -0700 |
commit | 1a2f3d7ff1d79b1290704e48c71e905b987393a6 (patch) | |
tree | 9408ebf33f18ab82dcc7872ca0e1dc2996a95e33 /gdb/frame.c | |
parent | 4cb771f214ed6a2102e37bce255c6be5d0642f3a (diff) | |
download | gdb-1a2f3d7ff1d79b1290704e48c71e905b987393a6.zip gdb-1a2f3d7ff1d79b1290704e48c71e905b987393a6.tar.gz gdb-1a2f3d7ff1d79b1290704e48c71e905b987393a6.tar.bz2 |
Extend test gdb.python/py-recurse-unwind.exp
This patch modifies the unwinder (sniffer) defined in
py-recurse-unwind.py so that, depending upon the value of one of its
class variables, it will take different paths through the code,
testing different functionality.
The original test attempted to obtain the value of an undefined
symbol.
This somewhat expanded test checks to see if 'pc' can be read via
gdb.PendingFrame.read_register() and also via gdb.parse_and_eval().
gdb/testsuite/ChangeLog:
* gdb.python/py-recurse-unwind.c (main): Add loop.
* gdb.python/py-recurse-unwind.py (TestUnwinder): Add calls
to read_register() and gdb.parse_and_eval(). Make each code
call a separate case that can be individually tested.
* gdb.python/py-recurse-unwind.exp (cont_and_backtrace): New
proc. Call cont_and_backtrace for each of the code paths that
we want to test in the unwinder.
Diffstat (limited to 'gdb/frame.c')
0 files changed, 0 insertions, 0 deletions