[all-commits] [llvm/llvm-project] 4737dc: [lldb] [test] Add unittest for DynamicRegisterInfo...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Sep 20 06:03:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4737dcbc83e05ac97c8695cf9a19bddb6446d71f
      https://github.com/llvm/llvm-project/commit/4737dcbc83e05ac97c8695cf9a19bddb6446d71f
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M lldb/unittests/Process/Utility/CMakeLists.txt
    A lldb/unittests/Process/Utility/DynamicRegisterInfoTest.cpp

  Log Message:
  -----------
  [lldb] [test] Add unittest for DynamicRegisterInfo::Finalize()

Differential Revision: https://reviews.llvm.org/D109906


  Commit: ec50d351ffdd4559ccce6013d3ab4a3f41c42cee
      https://github.com/llvm/llvm-project/commit/ec50d351ffdd4559ccce6013d3ab4a3f41c42cee
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
    M lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h
    M lldb/unittests/Process/Utility/DynamicRegisterInfoTest.cpp

  Log Message:
  -----------
  [lldb] [DynamicRegisterInfo] Unset value_regs/invalidate_regs before Finalize()

Set value_regs and invalidate_regs in RegisterInfo pushed onto m_regs
to nullptr, to ensure that the temporaries passed there are not
accidentally used.

Differential Revision: https://reviews.llvm.org/D109879


Compare: https://github.com/llvm/llvm-project/compare/fae57a6a9795...ec50d351ffdd


More information about the All-commits mailing list