Commit d963ad41 authored by hjk's avatar hjk
Browse files

Debugger: Work around wrong executable names



We currently don't always get proper executables from
the process list, and we don't need them for attaching.

Task-number: QTCREATORBUG-11295

Change-Id: I2fc18df0db85063146ed9dc09351844924e22bdc
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent bb44eca2
...@@ -670,7 +670,11 @@ class Dumper(DumperBase): ...@@ -670,7 +670,11 @@ class Dumper(DumperBase):
# sysroot has to be set *after* the platform # sysroot has to be set *after* the platform
if self.sysRoot_: if self.sysRoot_:
self.debugger.SetCurrentPlatformSDKRoot(self.sysRoot_) self.debugger.SetCurrentPlatformSDKRoot(self.sysRoot_)
self.target = self.debugger.CreateTarget(self.executable_, None, None, True, error)
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)
self.importDumpers() self.importDumpers()
state = "inferiorsetupok" if self.target.IsValid() else "inferiorsetupfailed" state = "inferiorsetupok" if self.target.IsValid() else "inferiorsetupfailed"
......
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