aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-29 12:47:00 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-29 10:55:42 +0000
commit20ac1c7e432a6a774a892050b165ee47d0e05db9 (patch)
treec0909bae847ab8b6cee1277eb68b5656c1f054d8
parent4840fd8440eb3d6cab005f3a5a6a27767c57ec91 (diff)
debug_windows.py: Fall back to separate "Debugging Tools" packages
"Debugging Tools" were once shipped as separate packages and might still be installed on older machines. Change-Id: Ice2cee4e9f995f6020502990bccf6f66721cb51e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--debug_windows.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug_windows.py b/debug_windows.py
index 704228c1f..6815e2bee 100644
--- a/debug_windows.py
+++ b/debug_windows.py
@@ -200,6 +200,9 @@ def get_cdb_and_gflags_path(kits):
bits = 'x64' if (sys.maxsize > 2 ** 32) else 'x32'
debuggers_path = path.join(first_path_path, 'Debuggers', bits)
cdb_path = path.join(debuggers_path, 'cdb.exe')
+ if not path.exists(cdb_path): # Try for older "Debugging Tools" packages
+ debuggers_path = "C:\\Program Files\\Debugging Tools for Windows (x64)"
+ cdb_path = path.join(debuggers_path, 'cdb.exe')
if not path.exists(cdb_path):
log.error("Couldn't find cdb.exe at: {}.".format(cdb_path))