Skip to content

Commit d7e2e97

Browse files
committed
[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.
1 parent ce512d5 commit d7e2e97

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,22 +236,22 @@ Status NativeRegisterContextLinux_arm::WriteAllRegisterValues(
236236

237237
if (!data_sp) {
238238
error.SetErrorStringWithFormat(
239-
"NativeRegisterContextLinux_x86_64::%s invalid data_sp provided",
239+
"NativeRegisterContextLinux_arm::%s invalid data_sp provided",
240240
__FUNCTION__);
241241
return error;
242242
}
243243

244244
if (data_sp->GetByteSize() != REG_CONTEXT_SIZE) {
245245
error.SetErrorStringWithFormat(
246-
"NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched "
246+
"NativeRegisterContextLinux_arm::%s data_sp contained mismatched "
247247
"data size, expected %" PRIu64 ", actual %" PRIu64,
248248
__FUNCTION__, (uint64_t)REG_CONTEXT_SIZE, data_sp->GetByteSize());
249249
return error;
250250
}
251251

252252
uint8_t *src = data_sp->GetBytes();
253253
if (src == nullptr) {
254-
error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s "
254+
error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm::%s "
255255
"DataBuffer::GetBytes() returned a null "
256256
"pointer",
257257
__FUNCTION__);
@@ -401,7 +401,7 @@ Status NativeRegisterContextLinux_arm::GetHardwareBreakHitIndex(
401401
uint32_t &bp_index, lldb::addr_t trap_addr) {
402402
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
403403

404-
LLDB_LOGF(log, "NativeRegisterContextLinux_arm64::%s()", __FUNCTION__);
404+
LLDB_LOGF(log, "NativeRegisterContextLinux_arm::%s()", __FUNCTION__);
405405

406406
lldb::addr_t break_addr;
407407

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,22 +478,22 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
478478

479479
if (!data_sp) {
480480
error.SetErrorStringWithFormat(
481-
"NativeRegisterContextLinux_x86_64::%s invalid data_sp provided",
481+
"NativeRegisterContextLinux_arm64::%s invalid data_sp provided",
482482
__FUNCTION__);
483483
return error;
484484
}
485485

486486
if (data_sp->GetByteSize() != REG_CONTEXT_SIZE) {
487487
error.SetErrorStringWithFormat(
488-
"NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched "
488+
"NativeRegisterContextLinux_arm64::%s data_sp contained mismatched "
489489
"data size, expected %" PRIu64 ", actual %" PRIu64,
490490
__FUNCTION__, REG_CONTEXT_SIZE, data_sp->GetByteSize());
491491
return error;
492492
}
493493

494494
uint8_t *src = data_sp->GetBytes();
495495
if (src == nullptr) {
496-
error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s "
496+
error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm64::%s "
497497
"DataBuffer::GetBytes() returned a null "
498498
"pointer",
499499
__FUNCTION__);

0 commit comments

Comments
 (0)