diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-12-09 16:59:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-09 17:29:13 +0000 |
commit | 138c6becd762c75df6b7ef04072a7c91cc9ee567 (patch) | |
tree | 4b276c3357d10579ab34cf818c43689437230a6c /buildscripts | |
parent | b206e0264580e726f2ba4063a435ded5de28d9a2 (diff) | |
download | mongo-138c6becd762c75df6b7ef04072a7c91cc9ee567.tar.gz |
SERVER-71978 improve stdlib pretty printers selection
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/gdb/mongo.py | 4 |
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 |