summaryrefslogtreecommitdiff
path: root/libunwindstack/DwarfSection.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-06 14:06:28 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-06 14:06:28 +0000
commitf4c9860a669c42d7278078d6221f25d8770cc35b (patch)
treede4b48670d0fac89f1708879644fb1c8ac169d7e /libunwindstack/DwarfSection.cpp
parent0fd3345a8990e00c60052bb5b0c4054b74c5b324 (diff)
parent6ec5d39099e83c3db80117846cf2395815b2ec7f (diff)
downloadunwinding-f4c9860a669c42d7278078d6221f25d8770cc35b.tar.gz
Snap for 11411398 from 6ec5d39099e83c3db80117846cf2395815b2ec7f to sdk-release
Change-Id: I108bf1053b5dcb493a08ce05f1a3bf9e5e8a7d6b
Diffstat (limited to 'libunwindstack/DwarfSection.cpp')
-rw-r--r--libunwindstack/DwarfSection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/DwarfSection.cpp b/libunwindstack/DwarfSection.cpp
index 2d664d6..728390c 100644
--- a/libunwindstack/DwarfSection.cpp
+++ b/libunwindstack/DwarfSection.cpp
@@ -450,7 +450,7 @@ bool DwarfSectionImpl<AddressType>::EvalRegister(const DwarfLocation* loc, uint3
*reg_ptr = eval_info->cfa + loc->values[0];
break;
case DWARF_LOCATION_REGISTER: {
- uint32_t cur_reg = loc->values[0];
+ uint16_t cur_reg = eval_info->regs_info.regs->Convert(loc->values[0]);
if (cur_reg >= eval_info->regs_info.Total()) {
last_error_.code = DWARF_ERROR_ILLEGAL_VALUE;
return false;