public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix gdb.base/multi-forks.exp regression with gdbserver (PR gdb/23377)
@ 2018-07-10 19:06 Pedro Alves
  2018-07-10 19:06 ` [PATCH 1/2] GDBserver: Don't assume thread's a current process in D;PID implementation " Pedro Alves
  2018-07-10 19:06 ` [PATCH 2/2] GDB: Workaround D;PID handling bug in older GDBservers " Pedro Alves
  0 siblings, 2 replies; 7+ messages in thread
From: Pedro Alves @ 2018-07-10 19:06 UTC (permalink / raw)
  To: gdb-patches

This series includes two patches that each in isolation would fix
gdb.base/multi-forks.exp against GDBserver (PR gdb/23377).

The real bug is that GDBserver's implementation of D;PID packet has a
bad assumption.  That is fixed by patch #1.

However, with that fix alone, using GDB 8.2 to debug against older
GDBservers would crash GDBserver.  Since it's easy to do, I thought
I'd add a GDB workaround too.  That's patch #2.

Pedro Alves (2):
  GDBserver: Don't assume thread's a current process in D;PID
    implementation (PR gdb/23377)
  GDB: Workaround D;PID handling bug in older GDBservers (PR gdb/23377)

 gdb/gdbserver/mem-break.c |  9 ++++-----
 gdb/gdbserver/mem-break.h |  3 ++-
 gdb/gdbserver/server.c    | 39 +++++++++++++++++++++------------------
 gdb/remote.c              |  8 ++++++++
 4 files changed, 35 insertions(+), 24 deletions(-)

-- 
2.14.4

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

end of thread, other threads:[~2018-07-11 22:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 19:06 [PATCH 0/2] Fix gdb.base/multi-forks.exp regression with gdbserver (PR gdb/23377) Pedro Alves
2018-07-10 19:06 ` [PATCH 1/2] GDBserver: Don't assume thread's a current process in D;PID implementation " Pedro Alves
2018-07-11  0:39   ` Simon Marchi
2018-07-10 19:06 ` [PATCH 2/2] GDB: Workaround D;PID handling bug in older GDBservers " Pedro Alves
2018-07-11  0:57   ` Simon Marchi
2018-07-11 19:50     ` Sergio Durigan Junior
2018-07-11 22:23       ` Pedro Alves

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).