[Lldb-commits] [lldb] r164564 - /lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
Jason Molenda
jmolenda at apple.com
Mon Sep 24 15:51:04 PDT 2012
Author: jmolenda
Date: Mon Sep 24 17:51:04 2012
New Revision: 164564
URL: http://llvm.org/viewvc/llvm-project?rev=164564&view=rev
Log:
Fix string comparisons in ABIMacOSX_i386::RegisterIsCalleeSaved so
that volatile registers are correctly reported for this ABI.
We were incorrectly passing up volatile registers from callee
frames.
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=164564&r1=164563&r2=164564&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp (original)
+++ lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp Mon Sep 24 17:51:04 2012
@@ -868,19 +868,19 @@
{
case 'b':
if (name[2] == 'x' || name[2] == 'p')
- return name[0] == '\0';
+ return name[3] == '\0';
break;
case 'd':
if (name[2] == 'i')
- return name[0] == '\0';
+ return name[3] == '\0';
break;
case 'i':
if (name[2] == 'p')
- return name[0] == '\0';
+ return name[3] == '\0';
break;
case 's':
if (name[2] == 'i' || name[2] == 'p')
- return name[0] == '\0';
+ return name[3] == '\0';
break;
}
}
More information about the lldb-commits
mailing list