https://github.com/clayborg commented:
As Jim was saying, we might be able to make something a bit more useful so that we can easily extend for other notifications of a debug session lifetime. Maybe instead of: ``` typedef void (*SBDebuggerCreateCallback)(lldb::SBDebugger &debugger, void *baton); ``` We can add something like: ``` enum NotificationType { eDebuggerWasCreated, eDebuggerWillBeDestroyed, // Call before debugger object is destroyed eTargetWasCreated, eTargetWillBeDestroyed, eProcess... }; typedef void (*SBNotificationCallback)(lldb::NotificationType type, lldb::SBDebugger &, lldb::SBExecutionContext &exe_ctx, void *baton); ``` Then we can easily add new registration callbacks that all use the same callback function. https://github.com/llvm/llvm-project/pull/111206 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits