[all-commits] [llvm/llvm-project] eb43e4: Reland "[lldb] [llgs] Fix multi-resume bugs with n...
Michał Górny via All-commits
all-commits at lists.llvm.org
Fri Jul 15 06:24:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb43e43bb5b2d19e14309e120cb8e66136ae7c82
https://github.com/llvm/llvm-project/commit/eb43e43bb5b2d19e14309e120cb8e66136ae7c82
Author: Michał Górny <mgorny at moritz.systems>
Date: 2022-07-15 (Fri, 15 Jul 2022)
Changed paths:
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
M lldb/test/API/tools/lldb-server/TestNonStop.py
M lldb/test/API/tools/lldb-server/vCont-threads/TestPartialResume.py
Log Message:
-----------
Reland "[lldb] [llgs] Fix multi-resume bugs with nonstop mode"
Improve handling of multiple successive continue packets in non-stop
mode. More specifically:
1. Explicitly send error response (instead of crashing on assertion)
if the user attempts to resume the same process twice. Since we
do not support thread-level non-stop mode, one needs to always stop
the process explicitly before resuming another thread set.
2. Actually stop the process if "vCont;t" is delivered to a running
process. Similarly, we only support stopping all the running threads
simultaneously (via -1) and return an error in any other case.
With this patch, running multiple processes simultaneously is still
unsupported. The patch also employs a hack to avoid enabling stdio
forwarding on "vCont;t" packet. Both of these issues are addressed
by followup patches.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D128710
More information about the All-commits
mailing list