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

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 28 18:56:15 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) {
----------------
jasonmolenda wrote:

I'd rather have the Architecture plugin only return an UnwindPlan when it is replacing the original one.  This way RegisterContextUnwind can log or update any other state that it may need to, knowing that the UnwindPlan it had selected has been replaced.

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


More information about the lldb-commits mailing list