[Lldb-commits] [lldb] [lldb][AArch64] Read fpmr register from core files (PR #110104)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 26 03:48:06 PDT 2024
================
@@ -61,3 +65,19 @@ def test_fpmr_register(self):
# 0 means the program found the new value in the sysreg as expected.
self.expect("continue", substrs=["exited with status = 0"])
+
+ @skipIfLLVMTargetMissing("AArch64")
+ def test_fpmr_register_core(self):
+ if not self.isAArch64FPMR():
+ self.skipTest("FPMR must be present.")
+
+ self.runCmd("target create --core corefile")
+
+ self.expect(
+ "register read --all",
+ substrs=[
+ "Floating Point Mode Register",
+ f"fpmr = {self.EXPECTED_FPMR:#018x}",
+ ],
+ )
+ self.expect("register read fpmr", substrs=self.EXPECTED_FPMR_FIELDS)
----------------
DavidSpickett wrote:
Note that for core file debug we aren't sending the register info via XML, so I don't need to skip this if XML support is not enabled.
https://github.com/llvm/llvm-project/pull/110104
More information about the lldb-commits
mailing list