forked from OSchip/llvm-project
[lldb] Add more missing consts in NativeRegisterContexts
This commit is contained in:
parent
b7bf5a7a7e
commit
470eb5c29b
|
@ -177,7 +177,7 @@ Status NativeRegisterContextFreeBSD_arm::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextFreeBSD_arm::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -186,7 +186,7 @@ Status NativeRegisterContextFreeBSD_arm64::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextFreeBSD_arm64::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -213,7 +213,7 @@ Status NativeRegisterContextFreeBSD_mips64::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextFreeBSD_mips64::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -264,7 +264,7 @@ Status NativeRegisterContextFreeBSD_powerpc::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextFreeBSD_powerpc::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -571,7 +571,7 @@ Status NativeRegisterContextFreeBSD_x86_64::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextFreeBSD_x86_64::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -400,7 +400,7 @@ Status NativeRegisterContextLinux_ppc64le::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextLinux_ppc64le::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
|
@ -561,7 +561,7 @@ Status NativeRegisterContextNetBSD_x86_64::WriteAllRegisterValues(
|
|||
return error;
|
||||
}
|
||||
|
||||
uint8_t *src = data_sp->GetBytes();
|
||||
const uint8_t *src = data_sp->GetBytes();
|
||||
if (src == nullptr) {
|
||||
error.SetErrorStringWithFormat("NativeRegisterContextNetBSD_x86_64::%s "
|
||||
"DataBuffer::GetBytes() returned a null "
|
||||
|
|
Loading…
Reference in New Issue