Esempio n. 1
0
 def compare(self, other, source=None):
     # Normally disassemble with line numbers, but if the command is
     # excluded, fallback to disassembly, and if that is also excluded,
     # fallback to a hexdump.
     diff, excluded = Difference.from_command_exc(
         ObjdumpDisassembleSection,
         self.path,
         other.path,
         command_args=[self._name],
     )
     if not excluded:
         return diff
     diff, excluded = Difference.from_command_exc(
         ObjdumpDisassembleSectionNoLineNumbers,
         self.path,
         other.path,
         command_args=[self._name],
     )
     if not excluded:
         return diff
     return super().compare(other, source)