From: Pedro Alves <pedro@palves.net>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/3] "run" and "attach" failure handling problems
Date: Mon, 12 Feb 2024 20:01:50 +0000 [thread overview]
Message-ID: <20240212200153.882582-1-pedro@palves.net> (raw)
While looking at gdb.base/attach.exp testsuite results on native
Cygwin, I noticed that "attach PID" or "run" would hang if the
previous command was an "attach" or "run" command that failed.
After fixing that on the Windows backend, I wrote a testcase for the
"run" scenario, and that revealed that GDBserver (all ports) also did
not handle that well.
This series thus fixes GDBserver, adds said testcase, and then finally
fixes native Cygwin.
Pedro Alves (3):
Fix "run" failure with GDBserver
Improve vRun error reporting
Windows: Fix run/attach hang after bad run/attach
gdb/remote.c | 23 +++++++-
gdb/testsuite/gdb.base/run-fail-twice.exp | 67 +++++++++++++++++++++++
gdb/windows-nat.c | 15 +++--
gdbserver/server.cc | 10 +++-
4 files changed, 106 insertions(+), 9 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/run-fail-twice.exp
base-commit: cda750802aef3beea582f0f3cad824be491abb4d
--
2.43.0
next reply other threads:[~2024-02-12 20:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 20:01 Pedro Alves [this message]
2024-02-12 20:01 ` [PATCH 1/3] Fix "run" failure with GDBserver Pedro Alves
2024-02-13 15:19 ` Lancelot SIX
2024-02-13 21:11 ` Pedro Alves
2024-02-12 20:01 ` [PATCH 2/3] Improve vRun error reporting Pedro Alves
2024-02-13 12:56 ` Pedro Alves
2024-02-13 15:36 ` Lancelot SIX
2024-02-12 20:01 ` [PATCH 3/3] Windows: Fix run/attach hang after bad run/attach Pedro Alves
2024-02-12 20:14 ` Hannes Domani
2024-02-13 12:20 ` Pedro Alves
2024-02-13 21:14 ` Pedro Alves
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=20240212200153.882582-1-pedro@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
/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