[all-commits] [llvm/llvm-project] d82ecb: LanguageRuntime can provide an UnwindPlan for spec...

Jason Molenda via All-commits all-commits at lists.llvm.org
Thu Feb 18 23:23:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d82ecb0ac72261189ec3a5dccd3ad55aeafe07b4
      https://github.com/llvm/llvm-project/commit/d82ecb0ac72261189ec3a5dccd3ad55aeafe07b4
  Author: Jason Molenda <jason at molenda.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M lldb/include/lldb/Target/LanguageRuntime.h
    M lldb/source/Target/LanguageRuntime.cpp
    M lldb/source/Target/RegisterContextUnwind.cpp

  Log Message:
  -----------
  LanguageRuntime can provide an UnwindPlan for special occasions

Add a facility in the LanguageRuntime to provide a special
UnwindPlan based on the register values in a RegisterContext,
instead of using the return-pc to find a function and use its
normal UnwindPlans.

Needed when the runtime has special stack frames that we want
to show the user, but aren't actually on the real stack.
Specifically for Swift asynchronous functions.

With feedback from Greg Clayton, Jonas Devlieghere, Dave Lee

<rdar://problem/70398009>

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




More information about the All-commits mailing list