aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-12-23 15:13:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-12-23 15:13:28 +0100
commitb064bba552e38e08a69a91424247ae67de493345 (patch)
tree05e9d3790fd636bed76450d2309f5e8cd4904f19
parent8ce8299f9458c7fee8554ecd4b97cc5eddba4e4c (diff)
downloadglibc-b064bba552e38e08a69a91424247ae67de493345.tar
glibc-b064bba552e38e08a69a91424247ae67de493345.tar.gz
glibc-b064bba552e38e08a69a91424247ae67de493345.tar.bz2
glibc-b064bba552e38e08a69a91424247ae67de493345.zip
scripts/test_printers_common.py: Log GDB error message
If GDB prints an error message for a "python" command, include that error message in the test log output, to simplify diagnosing GDB/Python detection issues.
-rw-r--r--ChangeLog5
-rw-r--r--scripts/test_printers_common.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1fcd9eda10..04d4971005 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-23 Florian Weimer <fweimer@redhat.com>
+
+ * scripts/test_printers_common.py: Log GDB output in case of
+ Python detection failure.
+
2016-12-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
* configure.ac: Check for python3 or python.
diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py
index c79d7e3be2..c605a3c00a 100644
--- a/scripts/test_printers_common.py
+++ b/scripts/test_printers_common.py
@@ -87,6 +87,7 @@ try:
if gdb_python_error:
print('gdb must have python support to test the pretty printers.')
+ print('gdb output: {!r}'.format(gdb_python_error))
exit(UNSUPPORTED)
# If everything's ok, spawn the gdb process we'll use for testing.