public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] gdb/remote: spot stop packets sent for the wrong thread
@ 2021-06-09 20:06 Andrew Burgess
  2021-06-09 20:06 ` [PATCH 1/4] gdb/remote: Use true/false instead of 1/0 Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrew Burgess @ 2021-06-09 20:06 UTC (permalink / raw)
  To: gdb-patches

This isn't a fix for bug gdb/26819, rather, it's an extension to GDB
to hopefully catch the bad packet from the remote before it triggers
an assertion GDB.

Currently it still leaves GDB in a broken state (i.e. unable to
interact with any threads, see patch #4 for more detail), but it at
least gives an error that hint to the user that the problem is the
remote, and stops GDB from falling over with an assertion, which
(understandably) makes it look like GDB is at fault.

I'd love suggestions for how to improve patch #4, so any feedback is
welcome.

Thanks,
Andrew

---

Andrew Burgess (4):
  gdb/remote: Use true/false instead of 1/0
  gdb/remote: better management of remote_state::starting_up flag
  gdb/remote: use remote_add_thread from extended_remote_target::attach
  gdb/remote: error if a stop arrives for a non-resumed thread

 gdb/ChangeLog | 23 +++++++++++++++++++++
 gdb/remote.c  | 56 ++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 67 insertions(+), 12 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-28 15:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 20:06 [PATCH 0/4] gdb/remote: spot stop packets sent for the wrong thread Andrew Burgess
2021-06-09 20:06 ` [PATCH 1/4] gdb/remote: Use true/false instead of 1/0 Andrew Burgess
2021-06-28 15:32   ` Andrew Burgess
2021-06-09 20:06 ` [PATCH 2/4] gdb/remote: better management of remote_state::starting_up flag Andrew Burgess
2021-06-09 20:06 ` [PATCH 3/4] gdb/remote: use remote_add_thread from extended_remote_target::attach Andrew Burgess
2021-06-09 20:06 ` [PATCH 4/4] gdb/remote: error if a stop arrives for a non-resumed thread Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).