[0/1] gdbserver: Reinstall software single-step breakpoints in resume_stopped_resumed_lwps

Message ID 20230803011146.2093194-1-kevinb@redhat.com
Headers
Series gdbserver: Reinstall software single-step breakpoints in resume_stopped_resumed_lwps |

Message

Kevin Buettner Aug. 3, 2023, 12:56 a.m. UTC
  This patch fixes a problem with software single-stepping in gdbserver.
See the 1/1 patch for the details.

The fix proper is based on the work of Zhiyong Yan, who I've credited
with a Co-Authored-By tag in the 1/1 patch.  The test case was also
partly Zhiyong's work since I adapted the C file from the reproducer
in the bug that was filed for this problem.

Zhiyong, please check to make sure that this revised change to
gdbserver/linux-low.c still fixes the bug on your board.

I've added Simon as a CC since the .exp file for the new test is based
on gdb.threads/next-fork-other-thread.exp, which he authored.  Also,
from my reading of the commit log for that test, I gather that Simon
has looked at a related problem in the past.

Kevin Buettner (1):
  gdbserver: Reinstall software single-step breakpoints in
    resume_stopped_resumed_lwps

 .../gdb.threads/next-fork-exec-other-thread.c |  82 +++++++++++
 .../next-fork-exec-other-thread.exp           | 131 ++++++++++++++++++
 gdbserver/linux-low.cc                        |   7 +-
 3 files changed, 219 insertions(+), 1 deletion(-)
 create mode 100644 gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c
 create mode 100644 gdb/testsuite/gdb.threads/next-fork-exec-other-thread.exp