summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2022-03-08 17:55:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-29 03:36:37 +0000
commit12e823ea48b3dd3efee67ffcddd926071df01aa4 (patch)
tree947b929699573a619dbf0a229e83bbfe836fcbda
parent05b8fa9a923779f29845933d27b1bed1f5514215 (diff)
downloadmongo-12e823ea48b3dd3efee67ffcddd926071df01aa4.tar.gz
SERVER-61032 Fix hang_hanalyzer $PATH
(cherry picked from commit 682f784e93b1602f0dcd74115e2105e1433857f5) (cherry picked from commit 6da1c8ecb87cbf421054a1b426c14d36481df27f) (cherry picked from commit c04db1e0b2c619ff74eec7219e392e6253ba05fa)
-rw-r--r--buildscripts/setup_spawnhost_coredump4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/setup_spawnhost_coredump b/buildscripts/setup_spawnhost_coredump
index 799d68e9a7f..80bdd2bcb66 100644
--- a/buildscripts/setup_spawnhost_coredump
+++ b/buildscripts/setup_spawnhost_coredump
@@ -3,7 +3,7 @@
cat >> ~/.profile <<EOF
# Coredumps generated by a toolchain built mongodb can be problematic when examined with the system
# gdb.
-export PATH=/opt/mongodbtoolchain/v3/bin:$PATH
+export PATH=$PATH:/opt/mongodbtoolchain/v3/bin
# As per below, put the user into the appropriate directory. This is where gdb is expected to be
# invoked from.
cd debug
@@ -21,7 +21,7 @@ echo
echo "To examine a core dump, type 'gdb ./<binary> ./<core file>'"
EOF
-export PATH=/opt/mongodbtoolchain/v3/bin:$PATH
+export PATH=$PATH:/opt/mongodbtoolchain/v3/bin
echo 'if [ -f ~/.profile ]; then
. ~/.profile
fi' >> .bash_profile