[Lldb-commits] [lldb] r164812 - /lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp

Jason Molenda jmolenda at apple.com
Thu Sep 27 22:46:55 PDT 2012


Author: jmolenda
Date: Fri Sep 28 00:46:55 2012
New Revision: 164812

URL: http://llvm.org/viewvc/llvm-project?rev=164812&view=rev
Log:
Recognize the eax/ebp/eip etc version of x86 register
names in addition to the rax/rbp/rip register names when
deciding whether a register is volatile or not.

Modified:
    lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp

Modified: lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp?rev=164812&r1=164811&r2=164812&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp Fri Sep 28 00:46:55 2012
@@ -1169,6 +1169,16 @@
                     return name[3] == '\0';
                 break;
 
+            default:
+                break;
+            }
+        }
+
+        // Accept shorter-variant versions, rbx/ebx, rip/ eip, etc.
+        if (name[0] == 'r' || name[0] == 'e')
+        {
+            switch (name[1])
+            {
             case 'b': // rbp, rbx
                 if (name[2] == 'p' || name[2] == 'x')
                     return name[3] == '\0';
@@ -1184,8 +1194,6 @@
                     return name[3] == '\0';
                 break;
 
-            default:
-                break;
             }
         }
     }





More information about the lldb-commits mailing list