From 7964ab5e49d25cfd16c51cee9911f6b036ac488c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Thu, 6 Dec 2012 02:49:20 +0000 Subject: [PATCH] Fix ABIMacOSX_i386::RegisterIsVolatile to return the negated value of RegisterIsCalleeSaved. Add ebp back to the list of registers that are callee saved. llvm-svn: 169466 --- lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp b/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp index 9135daf..a7bfaa9 100644 --- a/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp +++ b/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp @@ -928,7 +928,7 @@ ABIMacOSX_i386::CreateDefaultUnwindPlan (UnwindPlan &unwind_plan) bool ABIMacOSX_i386::RegisterIsVolatile (const RegisterInfo *reg_info) { - return RegisterIsCalleeSaved (reg_info); + return !RegisterIsCalleeSaved (reg_info); } // v. http://developer.apple.com/library/mac/#documentation/developertools/Conceptual/LowLevelABI/130-IA-32_Function_Calling_Conventions/IA32.html#//apple_ref/doc/uid/TP40002492-SW4 @@ -945,7 +945,7 @@ ABIMacOSX_i386::RegisterIsCalleeSaved (const RegisterInfo *reg_info) switch (name[1]) { case 'b': - if (name[2] == 'x')// || name[2] == 'p') + if (name[2] == 'x' || name[2] == 'p') return name[3] == '\0'; break; case 'd': -- 2.7.4