Skip to content

Commit e4235bd

Browse files
committed
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
1 parent ec57b37 commit e4235bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ kern_return_t DNBArchMachARM64::GetGPRState(bool force) {
157157
uint64_t log_pc = arm_thread_state64_get_pc(m_state.context.gpr);
158158
#else
159159
uint64_t log_fp = m_state.context.gpr.__fp;
160-
uint64_t log_fp = m_state.context.gpr.__lr;
161-
uint64_t log_fp = m_state.context.gpr.__sp;
162-
uint64_t log_fp = m_state.context.gpr.__pc,
160+
uint64_t log_lr = m_state.context.gpr.__lr;
161+
uint64_t log_sp = m_state.context.gpr.__sp;
162+
uint64_t log_pc = m_state.context.gpr.__pc,
163163
#endif
164164
DNBLogThreaded(
165165
"thread_get_state(0x%4.4x, %u, &gpr, %u) => 0x%8.8x (count = %u) regs"

0 commit comments

Comments
 (0)