[Lldb-commits] [lldb] e4235bd - Fix locals naming in DNBArchMachARM64::GetGPRState for 32-bit builds

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 22 13:24:30 PDT 2021


Author: Jason Molenda
Date: 2021-10-22T13:24:25-07:00
New Revision: e4235bdf26a2dd3b678daad4581d8e8edbc1aa7b

URL: https://github.com/llvm/llvm-project/commit/e4235bdf26a2dd3b678daad4581d8e8edbc1aa7b
DIFF: https://github.com/llvm/llvm-project/commit/e4235bdf26a2dd3b678daad4581d8e8edbc1aa7b.diff

LOG: Fix locals naming in DNBArchMachARM64::GetGPRState for 32-bit builds

The local variables names used for logging when built on armv7k
weren't unique, resulting in build error.

rdar://84274006

Added: 
    

Modified: 
    lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp b/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
index 69a833303c93..305eb14de533 100644
--- a/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
@@ -157,9 +157,9 @@ kern_return_t DNBArchMachARM64::GetGPRState(bool force) {
         uint64_t log_pc = arm_thread_state64_get_pc(m_state.context.gpr);
 #else
         uint64_t log_fp = m_state.context.gpr.__fp;
-        uint64_t log_fp = m_state.context.gpr.__lr;
-        uint64_t log_fp = m_state.context.gpr.__sp;
-        uint64_t log_fp = m_state.context.gpr.__pc,
+        uint64_t log_lr = m_state.context.gpr.__lr;
+        uint64_t log_sp = m_state.context.gpr.__sp;
+        uint64_t log_pc = m_state.context.gpr.__pc,
 #endif
     DNBLogThreaded(
         "thread_get_state(0x%4.4x, %u, &gpr, %u) => 0x%8.8x (count = %u) regs"


        


More information about the lldb-commits mailing list