Commit ecab6a05 authored by cyrush's avatar cyrush

added rudimentary support for debugging via lldb

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23883 18c085ea-50e0-402c-830e-de6fd14e8384
parent f0ab77cd
......@@ -1045,6 +1045,31 @@ class GDBDebugger(Debugger):
self.launcher.error("Could not create GDB command file: %s. Running VisIt normally." % self.filename)
return args
###############################################################################
# Class: LLDBDebugger
#
# Purpose: Launch a VisIt component under lldb.
#
# Programmer: Cyrus Harrison
# Date: Fri Jul 25 15:55:19 PDT 2014
#
# Modifications:
#
###############################################################################
class LLDBDebugger(Debugger):
def __init__(self, launcher):
super(LLDBDebugger, self).__init__(launcher)
def Executable(self):
return ["lldb"]
def CreateCommand(self, args):
#lldb_args = ["process","launch","--tty","--"]
lldb_args = ["--"]
return self.Executable() + lldb_args + [args[0]] + self.DebuggerArguments() + args[1:]
###############################################################################
# Class: TotalviewDebugger
#
......@@ -2619,6 +2644,9 @@ VisIt does not recognize your terminal application so it will ignore the -newcon
# Cyrus Harrison, Fri May 10 15:55:49 PDT 2013
# Added ddt.
#
# Cyrus Harrison, Fri Jul 25 15:59:02 PDT 2014
# Added lldb.
#
############################################################################
def Debuggers(self):
return ["gdb",
......@@ -2627,7 +2655,8 @@ VisIt does not recognize your terminal application so it will ignore the -newcon
"strace",
"apitrace",
"debug-malloc",
"ddt"]
"ddt",
"lldb"]
############################################################################
# Method: DebuggerFactory
......@@ -2644,6 +2673,9 @@ VisIt does not recognize your terminal application so it will ignore the -newcon
# Kathleen Biagas, Mon Apr 8 14:19:36 PDT 2013
# Added apitrace.
#
# Cyrus Harrison, Fri Jul 25 15:59:02 PDT 2014
# Added lldb.
#
############################################################################
def DebuggerFactory(self, debugger):
......@@ -2661,6 +2693,8 @@ VisIt does not recognize your terminal application so it will ignore the -newcon
return DebugMallocDebugger(self)
elif debugger == "ddt":
return DDTDebugger(self)
elif debugger == "lldb":
return LLDBDebugger(self)
# Return a debugger that does not do anything.
return Debugger(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment