binutils-gdb/gdb/testsuite/gdb.python
Kevin Pouget cc72b2a2da Introduce gdb.FinishBreakpoint in Python
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
	(SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
	Add build rule for this file.
	* infcmd.c (print_return_value): Split to create get_return_value.
	(get_return_value): New function based on print_return_value. Handle
	case where stop_registers are not set.
	* inferior.h (get_return_value): New prototype.
	* python/py-breakpoint.c (bppy_pending_object): Make non-static.
	(gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
	(struct breakpoint_object): Move to python-internal.h
	(BPPY_REQUIRE_VALID): Likewise.
	(BPPY_SET_REQUIRE_VALID): Likewise.
	(gdbpy_breakpoint_created): Initialize is_finish_bp.
	(gdbpy_should_stop): Add  pre/post hooks before/after calling stop
	method.
	* python/python-internal.h (breakpoint_object_type): Add as extern.
	(bppy_pending_object): Likewise.
	(typedef struct breakpoint_object) Removed.
	(struct breakpoint_object): Moved from py-breakpoint.c.
	Add field is_finish_bp.
	(BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
	(BPPY_SET_REQUIRE_VALID): Likewise.
	(frame_object_to_frame_info): New prototype.
	(gdbpy_initialize_finishbreakpoints): New prototype.
	(bpfinishpy_is_finish_bp): Likewise.
	(bpfinishpy_pre_stop_hook): Likewise.
	(bpfinishpy_post_stop_hook): Likewise.
	* python/py-finishbreakpoint.c: New file.
	* python/py-frame.c(frame_object_to_frame_info): Make non-static and
	accept PyObject instead of frame_object.
	(frapy_is_valid): Don't cast to frame_object.
	(frapy_name): Likewise.
	(frapy_type): Likewise.
	(frapy_unwind_stop_reason): Likewise.
	(frapy_pc): Likewise.
	(frapy_block): Likewise.
	(frapy_function): Likewise.
	(frapy_older): Likewise.
	(frapy_newer): Likewise.
	(frapy_find_sal): Likewise.
	(frapy_read_var): Likewise.
	(frapy_select): Likewise.
	* python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
	(_initialize_python): Add gdbpy_initialize_finishbreakpoints.
	* python/python.h: Include breakpoint.h
	(gdbpy_is_stopped_at_finish_bp): New prototype.

doc/
	* gdb.texinfo (Finish Breakpoints in Python): New subsection.
	(Python API): Add menu entry for Finish Breakpoints.

testsuite/
	* Makefile.in (EXECUTABLES): Add py-finish-breakpoint and
	py-finish-breakpoint2
	(MISCALLANEOUS): Add py-events-shlib.so and py-events-shlib-nodebug.so
	* gdb.python/py-breakpoint.exp (mult_line): Define and use variable
	instead of line number.
	* gdb.python/py-finish-breakpoint.c: New file.
	* gdb.python/py-finish-breakpoint.exp: New file.
	* gdb.python/py-finish-breakpoint.py: New file.
	* gdb.python/py-finish-breakpoint2.cc: New file.
	* gdb.python/py-finish-breakpoint2.exp: New file.
	* gdb.python/py-finish-breakpoint2.py: New file.
2011-12-23 17:06:16 +00:00
..
lib-types.cc * gdb.python/lib-types.cc (struct A): New structure. 2011-10-26 15:10:11 +00:00
lib-types.exp * gdb.python/lib-types.exp (deep_items): Rename from deepitems. 2011-10-28 14:49:21 +00:00
Makefile.in Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-block.c
py-block.exp 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> 2011-10-20 12:31:30 +00:00
py-breakpoint.c
py-breakpoint.exp Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-cmd.exp
py-error.exp
py-error.py
py-events-shlib.c Add missing files to previous commit (Allow Python notification of new object-file loadings.) 2011-10-07 08:39:57 +00:00
py-events.c Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-events.exp gdb/testsuite/ 2011-10-28 17:32:30 +00:00
py-events.py Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-evsignal.exp gdb/testsuite/ 2011-09-13 21:39:59 +00:00
py-evthreads.c gdb/testsuite/ 2011-09-13 21:39:59 +00:00
py-evthreads.exp gdb/testsuite/ 2011-09-16 07:34:27 +00:00
py-finish-breakpoint.c Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-finish-breakpoint.exp Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-finish-breakpoint.py Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-finish-breakpoint2.cc Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-finish-breakpoint2.exp Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-finish-breakpoint2.py Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-frame-inline.c gdb/testsuite/ 2011-12-23 14:57:39 +00:00
py-frame-inline.exp
py-frame.c
py-frame.exp
py-function.exp 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> 2011-12-16 15:55:40 +00:00
py-inferior.c
py-inferior.exp 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:42:30 +00:00
py-infthread.c
py-infthread.exp
py-mi.exp
py-objfile-script-gdb.py.in
py-objfile-script.c
py-objfile-script.exp
py-objfile.c
py-objfile.exp
py-parameter.exp
py-pp-maint.c
py-pp-maint.exp
py-pp-maint.py * python/lib/gdb/printing.py (register_pretty_printer): New argument 2011-10-07 22:46:15 +00:00
py-prettyprint.c
py-prettyprint.exp 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> 2011-12-16 15:55:40 +00:00
py-prettyprint.py
py-progspace.c
py-progspace.exp
py-prompt.c PR gdb/10720 2011-09-02 21:16:54 +00:00
py-prompt.exp PR gdb/10720 2011-09-02 21:16:54 +00:00
py-section-script.c
py-section-script.exp
py-section-script.py
py-shared-sl.c
py-shared.c
py-shared.exp * gdb.python/py-shared.exp: Relax filename check to handle remote: 2011-10-11 19:01:31 +00:00
py-symbol.c
py-symbol.exp * NEWS: Mention new "type" attribute of python gdb.Symbol objects. 2011-08-12 22:21:57 +00:00
py-symtab.exp
py-template.cc
py-template.exp
py-type.c * python/py-type.c (typy_fields_items): Call check_typedef. 2011-11-10 19:15:10 +00:00
py-type.exp gdb/testsuite/ 2011-12-19 13:42:50 +00:00
py-value.c * gdb.python/py-value.c (main): Break before return. 2011-10-04 17:43:16 +00:00
py-value.exp * gdb.python/py-value.exp: Add testcases for is_lazy attribute, 2011-10-25 18:35:49 +00:00
python-1.c
python.c
python.exp 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> 2011-12-16 15:55:40 +00:00
source1
source2.py