forked from qt-creator/qt-creator
Debugger: Make LLDB attach to local process work (again?)
Change-Id: I48ec7b5251db490d1c8e17affb3c1dc1ce22bece Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -878,6 +878,12 @@ class Dumper(DumperBase):
|
||||
if self.sysRoot_:
|
||||
self.debugger.SetCurrentPlatformSDKRoot(self.sysRoot_)
|
||||
|
||||
# There seems to be some kind of unexpected behavior, or bug in LLDB
|
||||
# such that target.Attach(attachInfo, error) below does not create
|
||||
# a valid process if this symbolFile here is valid.
|
||||
if self.startMode_ == DebuggerStartMode.AttachExternal:
|
||||
self.symbolFile_ = ''
|
||||
|
||||
self.target = self.debugger.CreateTarget(
|
||||
self.symbolFile_, None, self.platform_, True, error)
|
||||
|
||||
|
Reference in New Issue
Block a user