Fix wrong offset of eax and friends pointed out by Greg.
authorJohnny Chen <johnny.chen@apple.com>
Tue, 22 May 2012 18:34:18 +0000 (18:34 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Tue, 22 May 2012 18:34:18 +0000 (18:34 +0000)
rdar://problem/11487457

llvm-svn: 157272

lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp

index 79ac4f4..eb4ee95 100644 (file)
@@ -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 + 4;
+                    g_conv_register_infos[i].byte_offset = reg_info->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;