]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Add --with-python-libdir to gdb's --configuration output
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Jun 2020 09:02:47 +0000 (10:02 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Jun 2020 09:06:20 +0000 (10:06 +0100)
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
gdb/top.c

index a83f5afdcd9cddc6aa1470ba6e2634461d7e4b93..cf1c037cc72c89460d9bacdccb350a8161aa6956 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * top.c (print_gdb_configuration): Print --with-python-libdir
+       configuration value.
+
 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
        * NEWS: Mention change to the alias command.
index da9b805b47907198069428af69585eb8c2461cc2..acd31afb9a9087d4c98fedc9b1f276e62a35f406 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1567,6 +1567,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, _("\