[PUSHED] gdb: Add --with-python-libdir to gdb's --configuration output

Message ID 20200623090745.1175039-1-andrew.burgess@embecosm.com
State New
Headers show
Series
  • [PUSHED] gdb: Add --with-python-libdir to gdb's --configuration output
Related show

Commit Message

Andrew Burgess June 23, 2020, 9:07 a.m.
Commit:

  commit d13c7322fe1266984024644154003a19664610ea
  Date:   Fri Jan 17 00:10:22 2020 +0000

      gdb: Allow more control over where to find python libraries

Added a new configuration option --with-python-libdir, but failed to
add this option to the output of 'gdb --configuration'.  This commit
fixes this mistake.

gdb/ChangeLog:

	* top.c (print_gdb_configuration): Print --with-python-libdir
	configuration value.
---
 gdb/ChangeLog | 5 +++++
 gdb/top.c     | 9 +++++++++
 2 files changed, 14 insertions(+)

-- 
2.25.4

Patch

diff --git a/gdb/top.c b/gdb/top.c
index c62eb57695c..32dd90954b8 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1554,6 +1554,15 @@  This GDB was configured as follows:\n\
              --without-python\n\
 "));
 #endif
+#ifdef WITH_PYTHON_LIBDIR
+  fprintf_filtered (stream, _("\
+             --with-python-libdir=%s%s\n\
+"), WITH_PYTHON_LIBDIR, PYTHON_LIBDIR_RELOCATABLE ? " (relocatable)" : "");
+#else
+  fprintf_filtered (stream, _("\
+             --without-python-libdir\n\
+"));
+#endif
 
 #if HAVE_LIBDEBUGINFOD
   fprintf_filtered (stream, _("\