This commit is contained in:
Benjamin Peterson 2016-09-06 10:06:51 -07:00
commit 45c7514de4
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ def get_gdb_version():
try: try:
proc = subprocess.Popen(["gdb", "-nx", "--version"], proc = subprocess.Popen(["gdb", "-nx", "--version"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True) universal_newlines=True)
with proc: with proc:
version = proc.communicate()[0] version = proc.communicate()[0]