summaryrefslogtreecommitdiff
path: root/buildscripts/hang_analyzer.py
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-07-02 14:06:00 -0400
committerMathias Stearn <mathias@10gen.com>2015-07-02 14:06:00 -0400
commita43cd78c0c21cdfb14b4fec48f76753c01dd1e6b (patch)
tree1abff23e909e767c50ba175da358e61569f6b910 /buildscripts/hang_analyzer.py
parentc29c3e29d20667c466a49b039c76e096d1fce967 (diff)
downloadmongo-a43cd78c0c21cdfb14b4fec48f76753c01dd1e6b.tar.gz
Revert "Changes to hang_analyzer to find right gdb version on Linux 64."
This reverts commit 7c1faf54e639a5350d6b9ef693c67efaad565060.
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 4f27c0434c9..1d5f8c4772d 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -73,13 +73,18 @@ 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 spawn.find_executable(prog)
+ return None
+
class WindowsDumper(object):
@@ -235,7 +240,7 @@ class GDBDumper(object):
def __find_debugger(self):
"""Finds the installed debugger"""
- return find_program('gdb', ['/opt/mongodbtoolchain/bin'])
+ return find_program('gdb', ['/usr/bin'])
def dump_info(self, pid, stream):
dbg = self.__find_debugger()