forked from qt-creator/qt-creator
Debugger: Fix Attach to process and Run in Terminal
LLDB 6.x and 7.x Change-Id: I127ed1e14ccdd239646673f2460be46da22d4965 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -872,10 +872,8 @@ class Dumper(DumperBase):
|
||||
if self.sysRoot_:
|
||||
self.debugger.SetCurrentPlatformSDKRoot(self.sysRoot_)
|
||||
|
||||
if os.path.isfile(self.executable_):
|
||||
self.target = self.debugger.CreateTarget(self.executable_, None, None, True, error)
|
||||
else:
|
||||
self.target = self.debugger.CreateTarget(None, None, None, True, error)
|
||||
exefile = None if self.attachPid_ > 0 else self.executable_
|
||||
self.target = self.debugger.CreateTarget(exefile, None, None, True, error)
|
||||
|
||||
if self.nativeMixed:
|
||||
self.interpreterEventBreakpoint = \
|
||||
|
||||
Reference in New Issue
Block a user