[all-commits] [llvm/llvm-project] 366c54: [libunwind][test] Add test to check for unw_resume()

Lu Weining via All-commits all-commits at lists.llvm.org
Thu Apr 6 22:44:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 366c5474a3002114b8980ab278d93baa96046385
      https://github.com/llvm/llvm-project/commit/366c5474a3002114b8980ab278d93baa96046385
  Author: zhanglimin <zhanglimin at loongson.cn>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

  Changed paths:
    A libunwind/test/unw_resume.pass.cpp

  Log Message:
  -----------
  [libunwind][test] Add test to check for unw_resume()

This is here for local unwinding, which unw_resume() restores
the machine state and then directly resumes execution in the
target stack frame.

Reviewed By: wangleiat

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


  Commit: ff0aabf14dfa0a369c38f6e267c56a83ee48d647
      https://github.com/llvm/llvm-project/commit/ff0aabf14dfa0a369c38f6e267c56a83ee48d647
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

  Changed paths:
    M libunwind/src/UnwindRegistersRestore.S
    M libunwind/test/unw_resume.pass.cpp

  Log Message:
  -----------
  [libunwind][LoongArch] Restore $r1 before $r4 in `jumpto`

$ra should be restored before $a0, otherwise the baseaddress ($a0) would
be destroyed. See file `UnwindRegistersSave.S` for reference.

This also makes libcxx and libcxxabi regtest pass for the `-DLIBCXXABI_USE_LLVM_UNWINDER=ON` build.

Reviewed By: MaskRay, xen0n, #libunwind

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


Compare: https://github.com/llvm/llvm-project/compare/f38365aef436...ff0aabf14dfa


More information about the All-commits mailing list