from lldbsuite.test.lldbtest import * from lldbsuite.test.decorators import * from gdbclientutils import * from textwrap import dedent class MyResponder(MockGDBServerResponder): def qXferRead(self, obj, annex, offset, length): if annex == "target.xml": return dedent("""\ aarch64 """), False else: return None, False class TestQemuAarch64TargetXml(GDBRemoteTestBase): @skipIfXmlSupportMissing @skipIfRemote @skipIfLLVMTargetMissing("AArch64") def test_register_augmentation(self): """ Test that we correctly associate the register info with the eh_frame register numbers. """ target = self.createTarget("basic_eh_frame-aarch64.yaml") self.server.responder = MyResponder() process = self.connect(target) lldbutil.expect_state_changes(self, self.dbg.GetListener(), process, [lldb.eStateStopped]) self.filecheck("image show-unwind -n foo", __file__, "--check-prefix=UNWIND") # UNWIND: eh_frame UnwindPlan: # UNWIND: row[0]: 0: CFA=x29+16 => x30=[CFA-8]