https://github.com/ludovictyack created 
https://github.com/llvm/llvm-project/pull/173034

fix typo on GetBreakableLoadAddress call that cause lldb segmentation fault 
when setting breakpoints on arbitrary address

>From 8593509e9f998fe4d172387438ab1b2b57fd3808 Mon Sep 17 00:00:00 2001
From: Ludovic Tyack <[email protected]>
Date: Fri, 19 Dec 2025 17:28:49 +0100
Subject: [PATCH] Update ArchitectureMips.cpp

fix typo on GetBreakableLoadAddress call that cause lldb segmentation fault 
when set a breakpoints on arbitrary address
---
 lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp 
b/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
index 3748be0533ad7..fe6eecb0daf28 100644
--- a/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
+++ b/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
@@ -113,7 +113,7 @@ lldb::addr_t 
ArchitectureMips::GetBreakableLoadAddress(lldb::addr_t addr,
   if (current_offset == 0)
     return addr;
 
-  auto insn = GetInstructionAtAddress(target, current_offset, addr);
+  auto insn = GetInstructionAtAddress(target, addr, current_offset);
 
   if (nullptr == insn || !insn->HasDelaySlot())
     return addr;

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to