aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-06-24 16:04:58 -0500
committerGitHub <noreply@github.com>2025-06-24 14:04:58 -0700
commitaa3c5d0297e4e5fca2e6316d5430d752122969c9 (patch)
tree486e2a6155719968731cb51ead99763fc3bb1f35 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent830b2c842e78945de0d2dbd1b58ed74b977fd5f4 (diff)
downloadllvm-aa3c5d0297e4e5fca2e6316d5430d752122969c9.zip
llvm-aa3c5d0297e4e5fca2e6316d5430d752122969c9.tar.gz
llvm-aa3c5d0297e4e5fca2e6316d5430d752122969c9.tar.bz2
Revert "[lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server" (#145597)
Reverts llvm/llvm-project#127505 because `riscv/step/TestSoftwareStep.py` is failing on the bots.
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 9c798cb..7f2aba0 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -833,7 +833,7 @@ void NativeProcessLinux::MonitorBreakpoint(NativeThreadLinux &thread) {
auto stepping_with_bp_it =
m_threads_stepping_with_breakpoint.find(thread.GetID());
if (stepping_with_bp_it != m_threads_stepping_with_breakpoint.end() &&
- llvm::is_contained(stepping_with_bp_it->second, reg_ctx.GetPC()))
+ stepping_with_bp_it->second == reg_ctx.GetPC())
thread.SetStoppedByTrace();
StopRunningThreads(thread.GetID());
@@ -1960,12 +1960,10 @@ void NativeProcessLinux::SignalIfAllThreadsStopped() {
// Clear any temporary breakpoints we used to implement software single
// stepping.
for (const auto &thread_info : m_threads_stepping_with_breakpoint) {
- for (auto &&bp_addr : thread_info.second) {
- Status error = RemoveBreakpoint(bp_addr);
- if (error.Fail())
- LLDB_LOG(log, "pid = {0} remove stepping breakpoint: {1}",
- thread_info.first, error);
- }
+ Status error = RemoveBreakpoint(thread_info.second);
+ if (error.Fail())
+ LLDB_LOG(log, "pid = {0} remove stepping breakpoint: {1}",
+ thread_info.first, error);
}
m_threads_stepping_with_breakpoint.clear();