[PATCH v4 0/3] Reduce back and forth with target when threads have pending statuses

Simon Marchi simon.marchi@polymtl.ca
Mon Jan 25 04:57:27 GMT 2021


This is the v4 of patches 3 and 4 of this series:

  https://sourceware.org/pipermail/gdb-patches/2021-January/174786.html

The "better handling of 'S' packets" part of the series was already
merged.

Patch 1 is new, it adds a test to cover a case that didn't seem already
covered, that is running or attaching while the inferior is running.

Note that this series was developped and tested on top of these other
series/patches, so they can be considered prerequisites (applied in this
order):

  Fix detach + displaced-step regression + N bugs more
  https://sourceware.org/pipermail/gdb-patches/2021-January/175040.html

  Clear target async event handlers in wait method
  https://sourceware.org/pipermail/gdb-patches/2020-November/173633.html

  gdb: remove unneeded argument in check_multi_target_resumption
  https://sourceware.org/pipermail/gdb-patches/2021-January/175057.html

Simon Marchi (3):
  gdb/testsuite: add test for run/attach while program is running
  gdb: move commit_resume to process_stratum_target
  gdb: generalize commit_resume, avoid commit-resuming when threads have
    pending statuses

 gdb/infcmd.c                                  | 490 +++++++++---------
 gdb/infrun.c                                  | 147 +++++-
 gdb/infrun.h                                  |  59 +++
 gdb/mi/mi-main.c                              |  88 ++--
 gdb/process-stratum-target.c                  |  14 +
 gdb/process-stratum-target.h                  |  38 ++
 gdb/record-full.c                             |  10 +-
 gdb/remote.c                                  | 123 +++--
 gdb/target-delegates.c                        |  22 -
 gdb/target.c                                  |  30 +-
 gdb/target.h                                  |  20 -
 .../gdb.base/run-attach-while-running.c       |  69 +++
 .../gdb.base/run-attach-while-running.exp     | 131 +++++
 13 files changed, 847 insertions(+), 394 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/run-attach-while-running.c
 create mode 100644 gdb/testsuite/gdb.base/run-attach-while-running.exp

-- 
2.30.0



More information about the Gdb-patches mailing list