summaryrefslogtreecommitdiff
path: root/buildscripts/hang_analyzer.py
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-03-19 16:53:56 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-03-21 09:20:16 -0400
commite1f404b1f27b4ef2c38162fbee8b49853fc9f79d (patch)
tree3a4167b67eaa60426a23f18ebfb7366dde45e71c /buildscripts/hang_analyzer.py
parent23ca771f76f85638f23bca2a4a6ac196a81fdc21 (diff)
downloadmongo-e1f404b1f27b4ef2c38162fbee8b49853fc9f79d.tar.gz
SERVER-40244 Make `hang_analyzer.py` discover Windows 10 SDK's debugger
Diffstat (limited to 'buildscripts/hang_analyzer.py')
-rwxr-xr-xbuildscripts/hang_analyzer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/buildscripts/hang_analyzer.py b/buildscripts/hang_analyzer.py
index e96dbc2f841..2f244a4fc00 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -114,8 +114,13 @@ class WindowsDumper(object):
# Use the shell api to get the variable instead
root_dir = shell.SHGetFolderPath(0, shellcon.CSIDL_PROGRAM_FILESX86, None, 0)
- for idx in range(0, 2):
- dbg_path = os.path.join(root_dir, "Windows Kits", "8." + str(idx), "Debuggers", "x64")
+ # Construct the debugger search paths in most-recent order
+ debugger_paths = [os.path.join(root_dir, "Windows Kits", "10", "Debuggers", "x64")]
+ for idx in reversed(range(0, 2)):
+ debugger_paths.append(
+ os.path.join(root_dir, "Windows Kits", "8." + str(idx), "Debuggers", "x64"))
+
+ for dbg_path in debugger_paths:
logger.info("Checking for debugger in %s", dbg_path)
if os.path.exists(dbg_path):
return os.path.join(dbg_path, debugger)