Merge 3.5 (test_gdb)

This commit is contained in:
Victor Stinner 2015-09-03 09:46:24 +02:00
commit 5b4674db1d
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ def get_gdb_version():
# Regex to parse:
# 'GNU gdb (GDB; SUSE Linux Enterprise 12) 7.7\n' -> 7.7
# 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
match = re.search("^GNU gdb .*? (\d+)\.(\d)", version)
# 'GNU gdb 6.1.1 [FreeBSD]\n'
match = re.search("^GNU gdb.*? (\d+)\.(\d)", version)
if match is None:
raise Exception("unable to parse GDB version: %r" % version)
return (version, int(match.group(1)), int(match.group(2)))