summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-12-09 16:59:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-09 17:29:13 +0000
commit138c6becd762c75df6b7ef04072a7c91cc9ee567 (patch)
tree4b276c3357d10579ab34cf818c43689437230a6c /buildscripts
parentb206e0264580e726f2ba4063a435ded5de28d9a2 (diff)
downloadmongo-138c6becd762c75df6b7ef04072a7c91cc9ee567.tar.gz
SERVER-71978 improve stdlib pretty printers selection
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/gdb/mongo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/gdb/mongo.py b/buildscripts/gdb/mongo.py
index cc49174ea23..3f4437852b3 100644
--- a/buildscripts/gdb/mongo.py
+++ b/buildscripts/gdb/mongo.py
@@ -20,8 +20,8 @@ def detect_toolchain(progspace):
if not os.path.exists(readelf_bin):
readelf_bin = 'readelf'
- gcc_version_regex = re.compile(r'.*GCC: \(GNU\) (\d+\.\d+\.\d+).*')
- clang_version_regex = re.compile(r'.*clang version (\d+\.\d+\.\d+).*')
+ gcc_version_regex = re.compile(r'.*\]\s*GCC: \(GNU\) (\d+\.\d+\.\d+)\s*$')
+ clang_version_regex = re.compile(r'.*\]\s*MongoDB clang version (\d+\.\d+\.\d+).*')
readelf_cmd = [readelf_bin, '-p', '.comment', progspace.filename]
# take an educated guess as to where we could find the c++ printers, better than hardcoding