Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 379583e + 26afae4 commit ccc546cCopy full SHA for ccc546c
1 file changed
Lib/test/test_gdb.py
@@ -36,7 +36,8 @@ def get_gdb_version():
36
# Regex to parse:
37
# 'GNU gdb (GDB; SUSE Linux Enterprise 12) 7.7\n' -> 7.7
38
# 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
39
- match = re.search("^GNU gdb .*? (\d+)\.(\d)", version)
+ # 'GNU gdb 6.1.1 [FreeBSD]\n'
40
+ match = re.search("^GNU gdb.*? (\d+)\.(\d)", version)
41
if match is None:
42
raise Exception("unable to parse GDB version: %r" % version)
43
return (version, int(match.group(1)), int(match.group(2)))
0 commit comments