================ @@ -0,0 +1,71 @@ +""" +Tests that LLDB can correctly set up a disassembler using extensions from the .riscv.attributes section. +""" + +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class TestDisassembler(TestBase): + expected_zbb_instrs = ["andn", "orn", "xnor", "rol", "ror", "ret"] + + def _get_llvm_tool(self, tool): + clang = self.getCompiler() + bindir = os.path.dirname(clang) + candidate = os.path.join(bindir, tool) + if os.path.exists(candidate): + return candidate ---------------- DavidSpickett wrote:
I think this is redundant, looking at what `lldbutil.which` then does. https://github.com/llvm/llvm-project/pull/173047 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
