binutils-gdb/gdb/python
Tom Tromey fb2d9542d0 Fix bug in DAP handling of 'pause' requests
While working on cancellation, I noticed that a DAP 'pause' request
would set the "do not emit the continue" flag.  This meant that a
subsequent request that should provoke a 'continue' event would
instead suppress the event.

I then tried writing a more obvious test case for this, involving an
inferior call -- and discovered that gdb.events.cont does not fire for
an inferior call.

This patch installs a new event listener for gdb.events.inferior_call
and arranges for this to emit continue and stop events when
appropriate.  It also fixes the original bug, by adding a check to
exec_and_expect_stop.

(cherry picked from commit c618a1c548)
2023-11-27 09:16:46 -07:00
..
lib/gdb Fix bug in DAP handling of 'pause' requests 2023-11-27 09:16:46 -07:00
py-all-events.def gdb: add Python events for program space addition and removal 2023-10-02 17:06:40 +01:00
py-arch.c gdb: add __repr__() implementation to a few Python types 2023-07-04 12:07:16 +01:00
py-auto-load.c gdb: add program_space parameters to some auto-load functions 2023-10-05 13:20:50 -04:00
py-block.c gdb: add __repr__() implementation to a few Python types 2023-07-04 12:07:16 +01:00
py-bpevent.c
py-breakpoint.c Use gdb::checked_static_cast for watchpoints 2023-09-19 08:14:00 -06:00
py-cmd.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-connection.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-continueevent.c
py-dap.c [gdb/dap] Disable DAP for python <= 3.5 2023-08-02 23:14:58 +02:00
py-disasm.c Fix two Python calls that don't check for errors 2023-07-03 11:35:18 -06:00
py-event-types.def gdb: add Python events for program space addition and removal 2023-10-02 17:06:40 +01:00
py-event.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-event.h gdb: add program_space parameter to emit_clear_objfiles_event 2023-10-05 13:20:50 -04:00
py-events.h
py-evtregistry.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-frame.c Add gdb.Frame.static_link method 2023-11-14 08:49:55 -07:00
py-framefilter.c Don't treat references to compound values as "simple". 2023-05-04 08:58:18 -06:00
py-function.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-gdb-readline.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-inferior.c gdb: add all_objfiles_removed observer 2023-10-05 13:20:50 -04:00
py-infevents.c
py-infthread.c [gdb/build] Return gdb::array_view in thread_info_to_thread_handle 2023-08-24 13:40:38 +02:00
py-instruction.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-instruction.h
py-lazy-string.c Handle gdb.LazyString in DAP 2023-10-16 09:28:22 -06:00
py-linetable.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-membuf.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-mi.c gdb: remove mi_parse::make functions 2023-08-23 09:50:32 +01:00
py-micmd.c Use unique_xmalloc_ptr for mi_parse::command 2023-06-20 06:23:30 -06:00
py-newobjfileevent.c gdb: add program_space parameter to emit_clear_objfiles_event 2023-10-05 13:20:50 -04:00
py-objfile.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-param.c [gdb/build] Fix enum param_types odr violation 2023-08-14 18:32:29 +02:00
py-prettyprint.c Introduce gdb.ValuePrinter 2023-09-26 09:29:14 -06:00
py-progspace.c gdb: add Python events for program space addition and removal 2023-10-02 17:06:40 +01:00
py-record-btrace.c python, btrace: Fix some small formatting issues. 2023-05-31 09:27:17 +02:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c python, btrace: Fix some small formatting issues. 2023-05-31 09:27:17 +02:00
py-record.h
py-ref.h
py-registers.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-symtab.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-threadevent.c gdb/Python: Added ThreadExitedEvent 2023-06-19 16:17:21 +02:00
py-tui.c [gdb/tui] Fix assert in ~gdbpy_tui_window_maker 2023-07-26 12:29:28 +02:00
py-type.c Give a language to a type 2023-09-19 13:28:42 -06:00
py-unwind.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-utils.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
py-value.c Fix register-setting response from DAP 2023-10-16 09:28:22 -06:00
py-varobj.c gdb: add gdb::make_unique function 2023-08-23 09:50:30 +01:00
py-xmethods.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
python-config.py
python-internal.h Implement gdb.execute_mi 2023-05-23 10:09:28 -06:00
python.c Re-acquire GIL earlier in gdbpy_parse_and_eval 2023-07-28 06:15:30 -06:00
python.h