[Lldb-commits] [lldb] r169466 - /lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp

Jason Molenda jmolenda at apple.com
Wed Dec 5 18:49:20 PST 2012


Author: jmolenda
Date: Wed Dec  5 20:49:20 2012
New Revision: 169466

URL: http://llvm.org/viewvc/llvm-project?rev=169466&view=rev
Log:
Fix ABIMacOSX_i386::RegisterIsVolatile to return the negated value of 
RegisterIsCalleeSaved.  Add ebp back to the list of registers that
are callee saved.
<rdar://problem/12817918> 

Modified:
    lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp

Modified: lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp?rev=169466&r1=169465&r2=169466&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp (original)
+++ lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp Wed Dec  5 20:49:20 2012
@@ -928,7 +928,7 @@
 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 @@
             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':





More information about the lldb-commits mailing list