aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/qtcreator/debugger/lldbbridge.py45
1 files changed, 25 insertions, 20 deletions
diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py
index e3d9196345..3350318fbd 100644
--- a/share/qtcreator/debugger/lldbbridge.py
+++ b/share/qtcreator/debugger/lldbbridge.py
@@ -890,16 +890,15 @@ class Dumper(DumperBase):
if (self.startMode_ == DebuggerStartMode.AttachToRemoteServer
or self.startMode_ == DebuggerStartMode.AttachToRemoteProcess):
+ if self.platform_ != 'remote-ios':
+ # lldb-server expected on remote
+ remote_channel = 'connect://' + self.remoteChannel_
+ connect_options = lldb.SBPlatformConnectOptions(remote_channel)
-
- remote_channel = 'connect://' + self.remoteChannel_
- connect_options = lldb.SBPlatformConnectOptions(remote_channel)
-
- res = self.target.GetPlatform().ConnectRemote(connect_options)
- DumperBase.warn("CONNECT: %s %s %s" % (res,
- self.target.GetPlatform().GetName(),
- self.target.GetPlatform().IsConnected()))
-
+ res = self.target.GetPlatform().ConnectRemote(connect_options)
+ DumperBase.warn("CONNECT: %s %s %s" % (res,
+ self.target.GetPlatform().GetName(),
+ self.target.GetPlatform().IsConnected()))
broadcaster = self.target.GetBroadcaster()
listener = self.debugger.GetListener()
@@ -947,17 +946,23 @@ class Dumper(DumperBase):
elif (self.startMode_ == DebuggerStartMode.AttachToRemoteServer
or self.startMode_ == DebuggerStartMode.AttachToRemoteProcess):
- f = lldb.SBFileSpec()
- f.SetFilename(self.executable_)
-
- launchInfo = lldb.SBLaunchInfo(self.processArgs_)
- #launchInfo.SetWorkingDirectory(self.workingDirectory_)
- launchInfo.SetWorkingDirectory('/tmp')
- launchInfo.SetExecutableFile(f, True)
-
- DumperBase.warn("TARGET: %s" % self.target)
- self.process = self.target.Launch(launchInfo, error)
- DumperBase.warn("PROCESS: %s" % self.process)
+ if self.platform_ == 'remote-ios':
+ self.process = self.target.ConnectRemote(
+ self.debugger.GetListener(),
+ self.remoteChannel_, None, error)
+ else:
+ # lldb-server expected
+ f = lldb.SBFileSpec()
+ f.SetFilename(self.executable_)
+
+ launchInfo = lldb.SBLaunchInfo(self.processArgs_)
+ #launchInfo.SetWorkingDirectory(self.workingDirectory_)
+ launchInfo.SetWorkingDirectory('/tmp')
+ launchInfo.SetExecutableFile(f, True)
+
+ DumperBase.warn("TARGET: %s" % self.target)
+ self.process = self.target.Launch(launchInfo, error)
+ DumperBase.warn("PROCESS: %s" % self.process)
if not error.Success():
self.report(self.describeError(error))