when printing the GDB config, explicitly say if configured without python
authorДилян Палаузов <dilyan.palauzov@aegee.org>
Fri, 21 Dec 2018 15:09:40 +0000 (19:09 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 21 Dec 2018 17:59:09 +0000 (21:59 +0400)
When using the --configuration command line switch, or using
the "show configuration" command with a version of GDB which
was configured without Python supoprt, this patch changes
the resulting output to include...

    --without-python

... instead of not printing anything about Python support.

gdb/ChangeLog:

        * top.c (print_gdb_configuration): Print "--without-python"
        if GDB was configured without Python.

Tested on x86_64-linux by rebuilding GDB with and without Python,
and checking the output of "gdb --configuration" in both cases.

gdb/ChangeLog
gdb/top.c

index 900a4c70e1f11cced41253fd2b8772414d7f213f..4ead538e674b2fa91141b537a1f0552583fa2f4b 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-21  Дилян Палаузов  <dilyan.palauzov@aegee.org>
+
+       * top.c (print_gdb_configuration): Print "--without-python"
+       if GDB was configured without Python.
+
 2018-12-21  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
index 4a0fedb6a874c758e67774c06b8747446a112a26..ac74cb3a22685bdb8df0bc649695d5ee1ca91bfa 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1428,6 +1428,10 @@ This GDB was configured as follows:\n\
   fprintf_filtered (stream, _("\
              --with-python=%s%s\n\
 "), WITH_PYTHON_PATH, PYTHON_PATH_RELOCATABLE ? " (relocatable)" : "");
+#else
+  fprintf_filtered (stream, _("\
+             --without-python\n\
+"));
 #endif
 #if HAVE_GUILE
   fprintf_filtered (stream, _("\