]> sourceware.org Git - glibc.git/commitdiff
scripts/test_printers_common.py: Log GDB error message
authorFlorian Weimer <fweimer@redhat.com>
Fri, 23 Dec 2016 14:13:28 +0000 (15:13 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 23 Dec 2016 14:13:28 +0000 (15:13 +0100)
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.

ChangeLog
scripts/test_printers_common.py

index 1fcd9eda10a9c738a973d7e4853e56e2e6273ec7..04d49710058a4c4f47e6f28e185fa87fd324ea7c 100644 (file)
--- 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.
index c79d7e3be2fa29a65c1c7231af1e23c29f90fe3c..c605a3c00ab07b8f6f9721f45b3d8b0da71d1fb9 100644 (file)
@@ -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.
This page took 0.143473 seconds and 5 git commands to generate.