[Lldb-commits] [PATCH] Implement a RegisterContext for Windows and hook it up to TargetThreadWindows
Zachary Turner
zturner at google.com
Wed Nov 19 10:46:55 PST 2014
================
Comment at: source/Plugins/Process/Windows/RegisterContextWindows_x86.cpp:43-49
@@ +42,9 @@
+RegisterInfo g_register_infos[] = {
+ DEFINE_GPR32(eax, offsetof(CONTEXT, Eax), LLDB_INVALID_REGNUM) DEFINE_GPR32(ebx, offsetof(CONTEXT, Ebx), LLDB_INVALID_REGNUM)
+ DEFINE_GPR32(ecx, offsetof(CONTEXT, Ecx), LLDB_INVALID_REGNUM) DEFINE_GPR32(edx, offsetof(CONTEXT, Edx), LLDB_INVALID_REGNUM)
+ DEFINE_GPR32(edi, offsetof(CONTEXT, Edi), LLDB_INVALID_REGNUM) DEFINE_GPR32(esi, offsetof(CONTEXT, Esi), LLDB_INVALID_REGNUM)
+ DEFINE_GPR32(ebp, offsetof(CONTEXT, Ebp), LLDB_REGNUM_GENERIC_FP)
+ DEFINE_GPR32(esp, offsetof(CONTEXT, Esp), LLDB_REGNUM_GENERIC_SP)
+ DEFINE_GPR32(eip, offsetof(CONTEXT, Eip), LLDB_REGNUM_GENERIC_PC)
+ DEFINE_GPR32(eflags, offsetof(CONTEXT, EFlags), LLDB_REGNUM_GENERIC_FLAGS)};
+
----------------
Hah, looks like a funny side effect of clang-format (probably because I put the comma in the macro definition). I will fix this.
http://reviews.llvm.org/D6322
More information about the lldb-commits
mailing list