From 50c7c5b8df15aad66a9d2f6759e85689a2a74271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 21 Dec 2018 19:09:40 +0400 Subject: when printing the GDB config, explicitly say if configured without python 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/top.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index 4a0fedb..ac74cb3 100644 --- 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, _("\ -- cgit v1.1