[Lldb-commits] [lldb] r157272 - /lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp

Johnny Chen johnny.chen at apple.com
Tue May 22 11:34:18 PDT 2012


Author: johnny
Date: Tue May 22 13:34:18 2012
New Revision: 157272

URL: http://llvm.org/viewvc/llvm-project?rev=157272&view=rev
Log:
Fix wrong offset of eax and friends pointed out by Greg.

rdar://problem/11487457

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp?rev=157272&r1=157271&r2=157272&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp Tue May 22 13:34:18 2012
@@ -990,7 +990,7 @@
                 {
                     // 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;





More information about the lldb-commits mailing list