summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
index eb4ee95c6ed..f3726a1e3fa 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
@@ -990,7 +990,7 @@ GDBRemoteDynamicRegisterInfo::Addx86_64ConvenienceRegisters()
{
// The name matches the existing primordial entry.
// Find and assign the offset, and then add this composite register entry.
- g_conv_register_infos[i].byte_offset = reg_info->byte_offset;
+ g_conv_register_infos[i].byte_offset = reg_info->byte_offset + g_conv_register_infos[i].byte_offset;
// Update the value_regs and the kinds fields in order to delegate to the primordial register.
g_conv_register_infos[i].value_regs[0] = j;
g_conv_register_infos[i].kinds[eRegisterKindLLDB] = ++reg_kind;
OpenPOWER on IntegriCloud