summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/interface/SBType.i3
-rw-r--r--lldb/scripts/Python/python-extensions.swig4
2 files changed, 5 insertions, 2 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i
index c4d40f76091..fbeed3efd66 100644
--- a/lldb/scripts/Python/interface/SBType.i
+++ b/lldb/scripts/Python/interface/SBType.i
@@ -165,6 +165,9 @@ public:
bool
IsFunctionType ();
+ bool
+ IsPolymorphicClass ();
+
lldb::SBType
GetPointerType();
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig
index a6ca497bdb5..14dc044856e 100644
--- a/lldb/scripts/Python/python-extensions.swig
+++ b/lldb/scripts/Python/python-extensions.swig
@@ -759,7 +759,7 @@
%pythoncode %{
def command(*args, **kwargs):
- from lldb import debugger
+ import lldb
"""A decorator function that registers an LLDB command line
command that is bound to the function it is attached to."""
class obj(object):
@@ -769,7 +769,7 @@ def command(*args, **kwargs):
if doc:
function.__doc__ = doc
command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name)
- debugger.HandleCommand(command)
+ lldb.debugger.HandleCommand(command)
self.function = function
def __call__(self, *args, **kwargs):
self.function(*args, **kwargs)
OpenPOWER on IntegriCloud