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:
hjk
2020-05-05 15:51:09 +02:00
parent e73f05253e
commit 54dd137902

View File

@@ -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)