suppress stderr output when checking gdb (closes #27969)

This commit is contained in:
Benjamin Peterson 2016-09-06 10:06:31 -07:00
parent c5c83d6b7d
commit cbef66d711
1 changed files with 1 additions and 0 deletions

View File

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