binutils-gdb/gdb/testsuite/gdb.python
Kevin Buettner 1a2f3d7ff1 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.
2016-11-16 11:37:11 -07:00
..
amd64-py-framefilter-invalidarg.S
lib-types.cc
lib-types.exp
py-arch.c
py-arch.exp
py-as-string.c
py-as-string.exp
py-bad-printers.c
py-bad-printers.exp
py-bad-printers.py
py-block.c
py-block.exp
py-breakpoint-create-fail.c Fix use of a dangling pointer for Python breakpoint objects 2016-06-27 12:11:25 +02:00
py-breakpoint-create-fail.exp Fix use of a dangling pointer for Python breakpoint objects 2016-06-27 12:11:25 +02:00
py-breakpoint-create-fail.py Fix use of a dangling pointer for Python breakpoint objects 2016-06-27 12:11:25 +02:00
py-breakpoint.c
py-breakpoint.exp PR python/15620, PR python/18620 - breakpoint events in Python 2016-07-13 13:59:55 -06:00
py-caller-is.c
py-caller-is.exp
py-cmd.c
py-cmd.exp
py-completion.exp
py-completion.py
py-error.exp
py-error.py
py-events-shlib.c
py-events.c
py-events.exp
py-events.py
py-evsignal.exp
py-evthreads.c
py-evthreads.exp
py-explore-cc.exp
py-explore.c
py-explore.cc
py-explore.exp
py-finish-breakpoint.c
py-finish-breakpoint.exp Rename gdb_load_shlibs to gdb_load_shlib 2016-04-27 18:09:14 -04:00
py-finish-breakpoint.py
py-finish-breakpoint2.cc
py-finish-breakpoint2.exp
py-finish-breakpoint2.py
py-frame-args.c
py-frame-args.exp
py-frame-args.py
py-frame-inline.c
py-frame-inline.exp PR python/18565 - make Frame.function work for inline frames 2016-08-03 09:04:08 -06:00
py-frame.c
py-frame.exp
py-framefilter-gdb.py.in
py-framefilter-invalidarg-gdb.py.in
py-framefilter-invalidarg.exp
py-framefilter-invalidarg.py
py-framefilter-mi.c
py-framefilter-mi.exp
py-framefilter.c
py-framefilter.exp Fix PR python/20129 - use of non-existing variable 2016-06-29 10:18:38 -06:00
py-framefilter.py Fix some error-handling bugs in python frame filters 2016-11-08 09:10:57 -07:00
py-function.exp
py-inferior.c
py-inferior.exp
py-infthread.c
py-infthread.exp
py-lazy-string.c
py-lazy-string.exp
py-linetable.S
py-linetable.c
py-linetable.exp
py-lookup-type.exp Remove Java support 2016-10-06 10:10:40 -06:00
py-mi-events-gdb.py Prepare gdb.python/mi-py-events.exp for Python/MI in separate channels 2016-06-21 01:11:43 +01:00
py-mi-events.c
py-mi-events.exp Prepare gdb.python/mi-py-events.exp for Python/MI in separate channels 2016-06-21 01:11:43 +01:00
py-mi-objfile-gdb.py testsuite: Update py-mi-objfile to expect console format print 2016-04-06 09:39:16 +03:00
py-mi-objfile.c
py-mi-objfile.exp testsuite: Update py-mi-objfile to expect console format print 2016-04-06 09:39:16 +03:00
py-mi.exp
py-objfile-script-gdb.py
py-objfile-script.c
py-objfile-script.exp
py-objfile.c
py-objfile.exp Fix PR python/19438, PR python/18393 - initialize dictionaries 2016-05-23 10:08:34 -06:00
py-parameter.exp
py-pp-integral.c
py-pp-integral.exp
py-pp-integral.py
py-pp-maint.c
py-pp-maint.exp
py-pp-maint.py
py-pp-re-notag.c
py-pp-re-notag.exp
py-pp-re-notag.py
py-pp-registration.c
py-pp-registration.exp
py-pp-registration.py
py-prettyprint.c
py-prettyprint.exp
py-prettyprint.py
py-progspace.c
py-progspace.exp Fix PR python/19438, PR python/18393 - initialize dictionaries 2016-05-23 10:08:34 -06:00
py-prompt.c
py-prompt.exp
py-recurse-unwind.c Extend test gdb.python/py-recurse-unwind.exp 2016-11-16 11:37:11 -07:00
py-recurse-unwind.exp Extend test gdb.python/py-recurse-unwind.exp 2016-11-16 11:37:11 -07:00
py-recurse-unwind.py Extend test gdb.python/py-recurse-unwind.exp 2016-11-16 11:37:11 -07:00
py-section-script.c
py-section-script.exp
py-section-script.py
py-shared-sl.c
py-shared.c
py-shared.exp Fix PR python/18984 2016-06-02 13:18:42 -06:00
py-strfns.c
py-strfns.exp
py-symbol.c
py-symbol.exp
py-symtab.exp
py-sync-interp.c
py-sync-interp.exp
py-template.cc
py-template.exp
py-type.c
py-type.exp
py-typeprint.cc
py-typeprint.exp
py-typeprint.py
py-unwind-maint.c
py-unwind-maint.exp Fix PR19927: Avoid unwinder recursion if sniffer uses calls parse_and_eval 2016-09-05 18:41:38 +01:00
py-unwind-maint.py
py-unwind.c
py-unwind.exp testsuite patch: Skip py-unwind.exp on x86_64 -m32 2016-07-20 16:17:04 +02:00
py-unwind.py
py-value-cc.cc
py-value-cc.exp
py-value.c Fixup gdb.python/py-value.exp for bare-metal aarch64-elf 2016-10-12 10:10:03 -05:00
py-value.exp Fix py-value.exp failure on Python 3 2016-11-08 09:10:57 -07:00
py-xmethods.cc
py-xmethods.exp
py-xmethods.py
python-1.c
python.c
python.exp python: accept address and explicit locations in gdb.decode_line 2016-10-07 09:02:56 +02:00
source1
source2.py