old-cross-binutils/gdb/testsuite/gdb.python
Nick Bull 162078c893 New python events: inferior call, register/memory changed.
gdb/ChangeLog:

	* NEWS: Mention new Python events.
	* Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
	(SUBDIR_PYTHON_SRCS): Add py-infevents.c.
	(py-infevents.o): New rule.
	* doc/observer.texi (inferior_call_pre, inferior_call_post)
	(memory_changed, register_changed): New observers.
	* infcall.c (call_function_by_hand): Notify observer before and
	after inferior call.
	* python/py-event.h (inferior_call_kind): New enum.
	(emit_inferior_call_event): New prototype.
	(emit_register_changed_event): New prototype.
	(emit_memory_changed_event): New prototype.
	* python/py-events.h (events_object): New registries
	inferior_call, memory_changed and register_changed.
	* python/py-evts.c (gdbpy_initialize_py_events): Add the
	inferior_call, memory_changed and register_changed registries.
	* python/py-infevents.c: New.
	* python/py-inferior.c (python_on_inferior_call_pre)
	(python_on_inferior_call_post, python_on_register_change)
	(python_on_memory_change): New functions.
	(gdbpy_initialize_inferior): Attach python handler to new
	observers.
	* python/py-infthread.c(gdbpy_create_ptid_object): New.
	(thpy_get_ptid) Use gdbpy_create_ptid_object.
	* python/python-internal.h:
	(gdbpy_create_ptid_object)
	(gdbpy_initialize_inferior_call_pre_event)
	(gdbpy_initialize_inferior_call_post_event)
	(gdbpy_initialize_register_changed_event)
	(gdbpy_initialize_memory_changed_event): New prototypes.
	* python/python.c (_initialize_python): Initialize new events.
	* valops.c (value_assign): Notify register_changed observer.

gdb/doc/ChangeLog:

	* python.texi (Events In Python): Document new events
	InferiorCallPreEvent, InferiorCallPostEvent, MemoryChangedEvent
	and RegisterChangedEvent.

gdb/testsuite/ChangeLog:

	* gdb.python/py-events.py (inferior_call_handler): New.
	(register_changed_handler, memory_changed_handler): New.
	(test_events.invoke): Register new handlers.
	* gdb.python/py-events.exp: Add tests for inferior call,
	memory_changed and register_changed events.
2014-12-02 11:15:29 -08:00
..
amd64-py-framefilter-invalidarg.S Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
lib-types.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
lib-types.exp Fix and XFAIL test due to GCC PR55641, passes with clang 2014-04-24 13:22:10 -07:00
Makefile.in
py-arch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-arch.exp Remove duplicated code on checking address 0x0 is accessiable 2014-08-09 08:46:32 +08:00
py-block.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-block.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-breakpoint.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-breakpoint.exp Fix mingw32 failures due to incorrect directory separator in pattern 2014-10-17 11:28:17 -03:00
py-caller-is.c PR 15276: Add $_caller_is, $_caller_matches, $_any_caller_is, $_any_caller_matches 2014-09-06 09:15:44 -07:00
py-caller-is.exp PR 15276: Add $_caller_is, $_caller_matches, $_any_caller_is, $_any_caller_matches 2014-09-06 09:15:44 -07:00
py-cmd.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-cmd.exp Fix PR gdb/17035: "show user" doesn't list user-defined commands that 2014-09-07 20:12:19 -03:00
py-completion.exp PR python/16699: GDB Python command completion with overriden complete vs. completer class 2014-09-03 16:30:28 -04:00
py-completion.py PR python/16699: GDB Python command completion with overriden complete vs. completer class 2014-09-03 16:30:28 -04:00
py-error.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-error.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-events-shlib.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-events.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
py-events.exp New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-events.py New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-evsignal.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
py-evthreads.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-evthreads.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
py-explore-cc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-explore.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-explore.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-explore.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-finish-breakpoint.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
py-finish-breakpoint.exp Copy .py files to remote host 2014-08-22 13:44:18 +08:00
py-finish-breakpoint.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-finish-breakpoint2.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-finish-breakpoint2.exp Copy .py files to remote host 2014-08-22 13:44:18 +08:00
py-finish-breakpoint2.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-frame-args.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-frame-args.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-frame-args.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-frame-inline.c Fix PR backtrace/15558 2014-04-18 10:34:09 +01:00
py-frame-inline.exp Fix PR backtrace/15558 2014-04-18 10:34:09 +01:00
py-frame.c
py-frame.exp Add support for reading frame registers to Python API. 2014-09-03 16:34:47 -07:00
py-framefilter-gdb.py.in Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-framefilter-invalidarg-gdb.py.in Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-invalidarg.exp Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-invalidarg.py Fix crash on Python frame filters with unreadable arg 2014-09-07 14:09:59 +02:00
py-framefilter-mi.c GDB testsuite: More fixes for warnings with -std=gnu11 2014-11-17 10:26:31 +01:00
py-framefilter-mi.exp fix crash in frame filters 2014-01-23 08:03:50 -07:00
py-framefilter.c GDB testsuite: More fixes for warnings with -std=gnu11 2014-11-17 10:26:31 +01:00
py-framefilter.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-framefilter.py fix erroneous error-handling in frame filter code 2014-01-23 08:03:51 -07:00
py-function.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-inferior.c
py-inferior.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-infthread.c
py-infthread.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-linetable.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-linetable.exp Fix prints in tests for Python 3 2014-11-28 11:36:52 -05:00
py-linetable.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-mi.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-objfile-script-gdb.py Rename py-objfile-script-gdb.py.in to py-objfile-script-gdb.py 2014-10-20 13:34:33 +08:00
py-objfile-script.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-objfile-script.exp Rename py-objfile-script-gdb.py.in to py-objfile-script-gdb.py 2014-10-20 13:34:33 +08:00
py-objfile.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-objfile.exp Add ability to add attributes to gdb.Objfile and gdb.Progspace objects. 2014-10-30 17:05:17 -07:00
py-parameter.exp Fix py-parameter.exp for remote host 2014-10-15 15:33:24 +08:00
py-pp-integral.c [python] Add gdb.Type.name attribute. 2014-01-07 07:11:17 +04:00
py-pp-integral.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-pp-integral.py [python] Add gdb.Type.name attribute. 2014-01-07 07:11:17 +04:00
py-pp-maint.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-pp-maint.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-pp-maint.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-pp-re-notag.c [Python] Make regexp collection printers work with typedefs as well. 2014-02-26 11:04:12 -08:00
py-pp-re-notag.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-pp-re-notag.py [Python] Make regexp collection printers work with typedefs as well. 2014-02-26 11:04:12 -08:00
py-prettyprint.c Ensure unreferenced static symbols aren't omitted by clang (either marking them __attribute__((used)) or making them non-static) 2014-04-24 22:33:46 -07:00
py-prettyprint.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-prettyprint.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-progspace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-progspace.exp Add ability to add attributes to gdb.Objfile and gdb.Progspace objects. 2014-10-30 17:05:17 -07:00
py-prompt.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-prompt.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
py-section-script.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-section-script.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-section-script.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-shared-sl.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-shared.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-shared.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-strfns.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-strfns.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symbol.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symbol.exp Fix file name matching on remote host. 2014-10-15 15:33:24 +08:00
py-symtab.exp Fix file name matching on remote host. 2014-10-15 15:33:24 +08:00
py-sync-interp.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-sync-interp.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
py-template.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-template.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-type.c Use bitpos and type to lookup a gdb.Field object when its name is 'None'. 2014-01-13 17:35:56 -08:00
py-type.exp Fix prints in tests for Python 3 2014-11-28 11:36:52 -05:00
py-typeprint.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-typeprint.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-typeprint.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-value-cc.cc Call overloaded operators to perform operations on gdb.Value objects. 2014-02-19 15:47:45 -08:00
py-value-cc.exp Fix prints in tests for Python 3 2014-11-28 11:36:52 -05:00
py-value.c [python] Fix gdb.Value.dynamic_type for reference values. 2014-04-07 14:18:44 -07:00
py-value.exp Fix prints in tests for Python 3 2014-11-28 11:36:52 -05:00
py-xmethods.cc Make xmethods tests not to depend on inferior IO. 2014-06-18 04:31:47 -07:00
py-xmethods.exp Don't remove files copied to host 2014-10-20 13:34:28 +08:00
py-xmethods.py Fix xmethod Python so that it works with Python3. 2014-08-15 18:04:47 -07:00
python-1.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
python.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
python.exp Fix Python help() test for Python 3 2014-12-01 08:08:06 -05:00
source1 Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
source2.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00