[Lldb-commits] [lldb] [lldb] Remove import statement in lldb.command decorator (PR #188294)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 24 18:57:51 PDT 2026
================
@@ -269,13 +269,13 @@
%pythoncode %{
def command(command_name=None, doc=None):
- import lldb
"""A decorator function that registers an LLDB command line
command that is bound to the function it is attached to."""
def callable(function):
"""Registers an lldb command for the decorated function."""
command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name or function.__name__)
- lldb.debugger.HandleCommand(command)
+ global debugger
----------------
kastiglione wrote:
if that understanding is correct, it break both the current version and this proposed change
https://github.com/llvm/llvm-project/pull/188294
More information about the lldb-commits
mailing list