diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2012-05-22 18:59:38 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2012-05-22 18:59:38 +0000 |
| commit | b42b05e6de000f99e6c5b51c991bcbb1e599cbf3 (patch) | |
| tree | ba83f3410034defe0b82731997616b147e10bf4b | |
| parent | d42b92f5c3e1b4c9a4858967fef9ae6ad2e25372 (diff) | |
| download | llvm-b42b05e6de000f99e6c5b51c991bcbb1e599cbf3.zip llvm-b42b05e6de000f99e6c5b51c991bcbb1e599cbf3.tar.gz llvm-b42b05e6de000f99e6c5b51c991bcbb1e599cbf3.tar.bz2 | |
The RegisterInfo descriptors for the convenience registers can specify an offset to be added to the offset as derived from
the value_regs field, which is useful for future expansion purposes. As of now, we have:
calculated_offset_of_eax = offset_of_rax + (offset_of_eax_from_the_descriptor which is 0)
llvm-svn: 157275
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 2 |
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 eb4ee95..f3726a1 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; |
