old-cross-binutils/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/gdb * python/lib/gdb/command/pretty_printers.py 2011-12-06 17:38:53 +00:00
py-auto-load.c * python/py-auto-load.c (info_auto_load_scripts): Pass address of 2011-12-20 04:29:35 +00:00
py-block.c 2011-11-28 Phil Muldoon <pmuldoon@redhat.com> 2011-11-28 15:49:43 +00:00
py-bpevent.c 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-breakpoint.c Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-cmd.c * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference 2011-09-15 18:33:15 +00:00
py-continueevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-event.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-event.h Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-events.h Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-evtregistry.c 2011-06-16 Tristan Gingold <gingold@adacore.com> 2011-06-16 05:54:09 +00:00
py-evts.c Allow Python notification of new object-file loadings. 2011-10-07 07:38:30 +00:00
py-exitedevent.c 2011-10-04 Kevin Pouget <kevin.pouget@st.com> 2011-10-04 08:04:13 +00:00
py-finishbreakpoint.c Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-frame.c Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
py-function.c 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> 2011-10-27 10:29:58 +00:00
py-inferior.c 2011-11-28 Phil Muldoon <pmuldoon@redhat.com> 2011-11-28 15:49:43 +00:00
py-infthread.c 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> 2011-07-11 12:10:19 +00:00
py-lazy-string.c 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> 2011-10-27 09:14:27 +00:00
py-newobjfileevent.c Add missing files to previous commit (Allow Python notification of new object-file loadings.) 2011-10-07 08:39:57 +00:00
py-objfile.c 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> 2011-03-17 09:36:17 +00:00
py-param.c 2011-10-24 Phil Muldoon <pmuldoon@redhat.com> 2011-10-24 11:39:50 +00:00
py-prettyprint.c * varobj.c (update_dynamic_varobj_children): Make 'name' const. 2011-06-24 19:47:37 +00:00
py-progspace.c 2011-01-05 Michael Snyder <msnyder@vmware.com> 2011-01-06 00:57:05 +00:00
py-signalevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-stopevent.c 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-stopevent.h 2011-09-15 Kevin Pouget <kevin.pouget@st.com> 2011-09-15 12:27:20 +00:00
py-symbol.c 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> 2011-10-27 09:14:27 +00:00
py-symtab.c 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> 2011-03-17 09:36:17 +00:00
py-threadevent.c Add the file that prev commit forget. 2011-02-05 05:27:23 +00:00
py-type.c the "ambiguous linespec" series 2011-12-06 18:54:43 +00:00
py-utils.c 2011-02-28 Michael Snyder <msnyder@vmware.com> 2011-03-01 19:00:16 +00:00
py-value.c PR python/12533: 2011-12-22 19:51:10 +00:00
python-config.py allow building GDB with Python support on MinGW 2011-01-31 04:42:08 +00:00
python-internal.h Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
python.c Introduce gdb.FinishBreakpoint in Python 2011-12-23 17:06:16 +00:00
python.h * cli/cli-cmds.c (source_script_with_search): Pass full path to 2011-10-27 15:46:11 +00:00