Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc546c

Browse files
committed
Merge 3.4 (test_gdb)
2 parents 379583e + 26afae4 commit ccc546c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_gdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def get_gdb_version():
3636
# Regex to parse:
3737
# 'GNU gdb (GDB; SUSE Linux Enterprise 12) 7.7\n' -> 7.7
3838
# 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
39-
match = re.search("^GNU gdb .*? (\d+)\.(\d)", version)
39+
# 'GNU gdb 6.1.1 [FreeBSD]\n'
40+
match = re.search("^GNU gdb.*? (\d+)\.(\d)", version)
4041
if match is None:
4142
raise Exception("unable to parse GDB version: %r" % version)
4243
return (version, int(match.group(1)), int(match.group(2)))

0 commit comments

Comments
 (0)