summaryrefslogtreecommitdiff
path: root/buildscripts/hang_analyzer.py
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-18 23:20:15 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-30 18:18:14 -0400
commit7c1faf54e639a5350d6b9ef693c67efaad565060 (patch)
tree9985933af83619adab144dd160f9761f4d1d504d /buildscripts/hang_analyzer.py
parent9710407506b12128c09915bd2e30b8dc069f8b40 (diff)
downloadmongo-7c1faf54e639a5350d6b9ef693c67efaad565060.tar.gz
Changes to hang_analyzer to find right gdb version on Linux 64.
Diffstat (limited to 'buildscripts/hang_analyzer.py')
-rwxr-xr-xbuildscripts/hang_analyzer.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/buildscripts/hang_analyzer.py b/buildscripts/hang_analyzer.py
index 1d5f8c4772d..4f27c0434c9 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -73,18 +73,13 @@ def callo(a = []):
def find_program(prog, paths):
"""Finds the specified program in env PATH, or tries a set of paths """
- loc = spawn.find_executable(prog)
-
- if(loc != None):
- return loc
for loc in paths:
p = os.path.join(loc, prog)
if os.path.exists(p):
return p
- return None
-
+ return spawn.find_executable(prog)
class WindowsDumper(object):
@@ -240,7 +235,7 @@ class GDBDumper(object):
def __find_debugger(self):
"""Finds the installed debugger"""
- return find_program('gdb', ['/usr/bin'])
+ return find_program('gdb', ['/opt/mongodbtoolchain/bin'])
def dump_info(self, pid, stream):
dbg = self.__find_debugger()