aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorДилян Палаузов <dilyan.palauzov@aegee.org>2018-12-21 19:09:40 +0400
committerJoel Brobecker <brobecker@adacore.com>2018-12-21 21:59:09 +0400
commit50c7c5b8df15aad66a9d2f6759e85689a2a74271 (patch)
treeb08ddb53e276ef49f8fb2a27267ee0d1562f17c5 /gdb/top.c
parenta96bd1ccc0dca2d260e0e30de462f37066973ceb (diff)
downloadbinutils-50c7c5b8df15aad66a9d2f6759e85689a2a74271.zip
binutils-50c7c5b8df15aad66a9d2f6759e85689a2a74271.tar.gz
binutils-50c7c5b8df15aad66a9d2f6759e85689a2a74271.tar.bz2
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.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 4 insertions, 0 deletions
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, _("\