From d7e2e9794a3e353e60a956140dcab93980a2a989 Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Wed, 25 Aug 2021 02:53:31 +0500 Subject: [PATCH] [LLDB] Remove typos from NativeRegisterContextLinux_arm* This patch removed some typos from NativeRegisterContextLinux_arm and NativeRegisterContextLinux_arm64. Some of the log/error messages were being reported as x86_64. --- .../Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp | 8 ++++---- .../Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp index 91f8828..dcd68dd 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp @@ -236,14 +236,14 @@ Status NativeRegisterContextLinux_arm::WriteAllRegisterValues( if (!data_sp) { error.SetErrorStringWithFormat( - "NativeRegisterContextLinux_x86_64::%s invalid data_sp provided", + "NativeRegisterContextLinux_arm::%s invalid data_sp provided", __FUNCTION__); return error; } if (data_sp->GetByteSize() != REG_CONTEXT_SIZE) { error.SetErrorStringWithFormat( - "NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched " + "NativeRegisterContextLinux_arm::%s data_sp contained mismatched " "data size, expected %" PRIu64 ", actual %" PRIu64, __FUNCTION__, (uint64_t)REG_CONTEXT_SIZE, data_sp->GetByteSize()); return error; @@ -251,7 +251,7 @@ Status NativeRegisterContextLinux_arm::WriteAllRegisterValues( uint8_t *src = data_sp->GetBytes(); if (src == nullptr) { - error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s " + error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm::%s " "DataBuffer::GetBytes() returned a null " "pointer", __FUNCTION__); @@ -401,7 +401,7 @@ Status NativeRegisterContextLinux_arm::GetHardwareBreakHitIndex( uint32_t &bp_index, lldb::addr_t trap_addr) { Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS)); - LLDB_LOGF(log, "NativeRegisterContextLinux_arm64::%s()", __FUNCTION__); + LLDB_LOGF(log, "NativeRegisterContextLinux_arm::%s()", __FUNCTION__); lldb::addr_t break_addr; diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp index 34a520e..ebde0a4 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp @@ -478,14 +478,14 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues( if (!data_sp) { error.SetErrorStringWithFormat( - "NativeRegisterContextLinux_x86_64::%s invalid data_sp provided", + "NativeRegisterContextLinux_arm64::%s invalid data_sp provided", __FUNCTION__); return error; } if (data_sp->GetByteSize() != REG_CONTEXT_SIZE) { error.SetErrorStringWithFormat( - "NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched " + "NativeRegisterContextLinux_arm64::%s data_sp contained mismatched " "data size, expected %" PRIu64 ", actual %" PRIu64, __FUNCTION__, REG_CONTEXT_SIZE, data_sp->GetByteSize()); return error; @@ -493,7 +493,7 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues( uint8_t *src = data_sp->GetBytes(); if (src == nullptr) { - error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s " + error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm64::%s " "DataBuffer::GetBytes() returned a null " "pointer", __FUNCTION__); -- 2.7.4