[Lldb-commits] [lldb] [PPC64][Linux] Watchpoint configuration for PPC64 (PR #185192)
Dhruv Srivastava via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 7 06:34:51 PST 2026
https://github.com/DhruvSrivastavaX created https://github.com/llvm/llvm-project/pull/185192
On PPC64, SIGTRAP is delivered before the triggering instruction completes. The previous implementation did not correctly tell this to qSupported response causing the SingleStep to not happen on Linux for PPC64, at the execution being stuck at the store instruction.
This patch corrects this.
>From 2e0f927f7392c7ce0a9aef17c8d45c449422f11e Mon Sep 17 00:00:00 2001
From: DhruvSrivastavaX <dhruv.srivastava at ibm.com>
Date: Sat, 7 Mar 2026 08:21:17 -0600
Subject: [PATCH] Watchpoint configuration for PPC64
---
.../Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
index 4a1117222f34c..786ced6525364 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
@@ -234,7 +234,7 @@ GDBRemoteCommunicationServerCommon::Handle_qHostInfo(
host_arch.GetMachine() == llvm::Triple::aarch64_be ||
host_arch.GetMachine() == llvm::Triple::arm ||
host_arch.GetMachine() == llvm::Triple::armeb || host_arch.IsMIPS() ||
- host_arch.GetTriple().isLoongArch())
+ host_arch.GetTriple().isPPC64() || host_arch.GetTriple().isLoongArch())
response.Printf("watchpoint_exceptions_received:before;");
else
response.Printf("watchpoint_exceptions_received:after;");
More information about the lldb-commits
mailing list