[Lldb-commits] [PATCH] D111489: [lldb] [DynamicRegisterInfo] Support value_regs with offset
    Pavel Labath via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Mon Oct 11 04:53:46 PDT 2021
    
    
  
labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lldb/unittests/Target/DynamicRegisterInfoTest.cpp:203-214
+  ASSERT_REG(rax, {}, {eax, ax, ah, al});
+  ASSERT_REG(eax, {rax}, {rax, ax, ah, al});
+  ASSERT_REG(ax, {rax}, {rax, eax, ah, al});
+  ASSERT_REG(ah, {rax}, {rax, eax, ax, al});
+  ASSERT_REG(al, {rax}, {rax, eax, ax, ah});
+
+  EXPECT_EQ(m_dyninfo.SetRegisterInfo(m_regs, ArchSpec()), m_regs.size());
----------------
I don't know when this slipped through, but I think that the distinction between these two assert blocks is too subtle -- they're testing completely different things, so I think they deserve different names.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111489/new/
https://reviews.llvm.org/D111489
    
    
More information about the lldb-commits
mailing list