[Lldb-commits] [lldb] r170818 - /lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py

Andrew Kaylor andrew.kaylor at intel.com
Thu Dec 20 16:26:22 PST 2012


Author: akaylor
Date: Thu Dec 20 18:26:22 2012
New Revision: 170818

URL: http://llvm.org/viewvc/llvm-project?rev=170818&view=rev
Log:
Updating TestAbbreviations.py to check for a reduced set of instructions when testing 'dis -f'.

Not all of the expected instructions were being generated for the function being disassembled on x86-64-based Linux.  It had no push, pop or leave.

Modified:
    lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py

Modified: lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py?rev=170818&r1=170817&r2=170818&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py Thu Dec 20 18:26:22 2012
@@ -148,11 +148,9 @@
         if self.getArchitecture() in ["", 'x86_64', 'i386']:
             self.expect("dis -f",
                         startstr = "a.out`sum(int, int)",
-                        substrs = [' push',
-                                   ' mov',
+                        substrs = [' mov',
                                    ' addl ',
-                                   'ret'],
-                        patterns = ['(leave|popq|popl)'])
+                                   'ret'])
 
         self.expect("i d l main.cpp",
                     patterns = ["Line table for .*main.cpp in `a.out"])





More information about the lldb-commits mailing list