From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH v3 0/5] Reduce back and forth with target when threads have pending statuses + better handling of 'S' packets
Date: Thu, 7 Jan 2021 23:17:29 -0500 [thread overview]
Message-ID: <20210108041734.3873826-1-simon.marchi@polymtl.ca> (raw)
This series is made of two set of changes. The first 4 patches are the
new version of this series:
https://sourceware.org/pipermail/gdb-patches/2020-December/174271.html
The rationale remains the same.
The main change is in patch 1. Previously, the remote target was only
tracking the resume state in non-stop, now it does it even in all-stop.
This was changed because it is useful for patch 5, which is the new
version of this patch:
https://sourceware.org/pipermail/gdb-patches/2020-December/174277.html
I included patch 5 in this series because it uses the infrastructure
added by patch 1.
I also think that making the remote target track the resume state in all
modes, as opposed to just in non-stop mode, is less confusing in the
long run.
Since patches 3 and 4 may be a bit more controversial and require more
discussions, it would be possible to merge only 1, 2 and 5 and discuss
the others separately. Or even just 1 and 5.
This series is called "v3" because what's now patch 5 was already at v2,
so I thought it was less confusing this way.
Andrew Burgess (1):
gdb: better handling of 'S' packets
Simon Marchi (4):
gdb: make the remote target track its own thread resume state
gdb: remove target_ops::commit_resume implementation in
record-{btrace,full}.c
gdb: move commit_resume to process_stratum_target
gdb: generalize commit_resume, avoid commit-resuming when threads have
pending statuses
gdb/infcmd.c | 8 +
gdb/infrun.c | 126 ++++-
gdb/infrun.h | 41 ++
gdb/linux-nat.c | 5 +
gdb/mi/mi-main.c | 2 +
gdb/process-stratum-target.c | 14 +
gdb/process-stratum-target.h | 38 ++
gdb/record-btrace.c | 11 -
gdb/record-full.c | 20 +-
gdb/remote.c | 431 +++++++++++++-----
gdb/target-delegates.c | 22 -
gdb/target.c | 22 -
gdb/target.h | 20 -
.../gdb.server/stop-reply-no-thread-multi.c | 77 ++++
.../gdb.server/stop-reply-no-thread-multi.exp | 136 ++++++
15 files changed, 740 insertions(+), 233 deletions(-)
create mode 100644 gdb/testsuite/gdb.server/stop-reply-no-thread-multi.c
create mode 100644 gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp
--
2.29.2
next reply other threads:[~2021-01-08 4:17 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 4:17 Simon Marchi via Gdb-patches [this message]
2021-01-08 4:17 ` [PATCH v3 1/5] gdb: make the remote target track its own thread resume state Simon Marchi via Gdb-patches
2021-01-08 15:41 ` Pedro Alves
2021-01-08 18:56 ` Simon Marchi via Gdb-patches
2021-01-18 5:16 ` Sebastian Huber
2021-01-18 6:04 ` Simon Marchi via Gdb-patches
2021-01-18 10:36 ` Sebastian Huber
2021-01-18 13:53 ` Simon Marchi via Gdb-patches
2021-01-08 4:17 ` [PATCH v3 2/5] gdb: remove target_ops::commit_resume implementation in record-{btrace, full}.c Simon Marchi via Gdb-patches
2021-01-08 15:43 ` [PATCH v3 2/5] gdb: remove target_ops::commit_resume implementation in record-{btrace,full}.c Pedro Alves
2021-01-08 19:00 ` Simon Marchi via Gdb-patches
2021-01-08 4:17 ` [PATCH v3 3/5] gdb: move commit_resume to process_stratum_target Simon Marchi via Gdb-patches
2021-01-08 18:12 ` Andrew Burgess
2021-01-08 19:01 ` Simon Marchi via Gdb-patches
2021-01-09 20:29 ` Pedro Alves
2021-01-08 4:17 ` [PATCH v3 4/5] gdb: generalize commit_resume, avoid commit-resuming when threads have pending statuses Simon Marchi via Gdb-patches
2021-01-08 18:34 ` Andrew Burgess
2021-01-08 19:04 ` Simon Marchi via Gdb-patches
2021-01-09 20:34 ` Pedro Alves
2021-01-11 20:28 ` Simon Marchi via Gdb-patches
2021-01-22 2:46 ` Simon Marchi via Gdb-patches
2021-01-22 22:07 ` Simon Marchi via Gdb-patches
2021-01-12 17:14 ` Simon Marchi via Gdb-patches
2021-01-12 18:04 ` Simon Marchi via Gdb-patches
2021-01-15 19:17 ` Simon Marchi via Gdb-patches
2021-01-08 4:17 ` [PATCH v3 5/5] gdb: better handling of 'S' packets Simon Marchi via Gdb-patches
2021-01-08 18:19 ` Andrew Burgess
2021-01-08 19:11 ` Simon Marchi via Gdb-patches
2021-01-09 21:26 ` Pedro Alves
2021-01-11 20:36 ` Simon Marchi via Gdb-patches
2021-01-12 3:07 ` Simon Marchi via Gdb-patches
2021-01-13 20:17 ` Pedro Alves
2021-01-14 1:28 ` Simon Marchi via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210108041734.3873826-1-simon.marchi@polymtl.ca \
--to=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox