[Lldb-commits] [lldb] [lldb] Unwind through ARM Cortex-M exceptions automatically (PR #153922)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 26 07:03:00 PDT 2025


================
@@ -129,6 +130,14 @@ class Architecture : public PluginInterface {
                                        RegisterContext &reg_context) const {
     return false;
   }
+
+  /// Return an UnwindPlan that allows architecture-defined rules for finding
+  /// saved registers, given a particular set of register values.
+  virtual lldb::UnwindPlanSP GetArchitectureUnwindPlan(
+      lldb_private::Thread &thread, lldb_private::RegisterContextUnwind *regctx,
+      std::shared_ptr<const UnwindPlan> current_unwindplan) {
----------------
DavidSpickett wrote:

Could you return current_unwindplan in the default case?

https://github.com/llvm/llvm-project/pull/153922


More information about the lldb-commits mailing list