Made the i386 ABI mark EBP as non-volatile,
authorSean Callanan <scallanan@apple.com>
Thu, 4 Oct 2012 22:24:27 +0000 (22:24 +0000)
committerSean Callanan <scallanan@apple.com>
Thu, 4 Oct 2012 22:24:27 +0000 (22:24 +0000)
because the unwinders typically can find its
value.

llvm-svn: 165266

lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp

index c2f674b..862ea39 100644 (file)
@@ -940,7 +940,7 @@ ABIMacOSX_i386::RegisterIsCalleeSaved (const RegisterInfo *reg_info)
             switch (name[1])
             {
             case 'b': 
-                if (name[2] == 'x' || name[2] == 'p')
+                if (name[2] == 'x') // ebp is volatile in the ABI, but the unwinders can find it
                     return name[3] == '\0';
                 break;
             case 'd':