[Lldb-commits] [lldb] [lldb] Add `scripting extension list --instances` (PR #226043)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 6 17:58:58 PDT 2026
================
@@ -27,7 +28,12 @@ namespace lldb_private {
class ScriptedInterface {
public:
ScriptedInterface() = default;
- virtual ~ScriptedInterface() = default;
+ virtual ~ScriptedInterface() { UnregisterInstance(); }
+
+ // Copies would share the registry entry, and the first one destroyed would
+ // drop it while the other is still alive.
----------------
JDevlieghere wrote:
```suggestion
/// Delete the copy constructor. The copy would share the registry entry, and the first one destroyed would unregister it while the other is still alive.
/// @{
```
https://github.com/llvm/llvm-project/pull/226043
More information about the lldb-commits
mailing list