This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/20403] New: Print whether gdb was compiled with python


https://sourceware.org/bugzilla/show_bug.cgi?id=20403

            Bug ID: 20403
           Summary: Print whether gdb was compiled with python
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

As posted at https://sourceware.org/ml/gdb-patches/2015-07/msg00396.html:

show configuration --without-python

Emit information upon "show configuration", if GDB has no Python support, as it
is done for Guile.


diff --git a/gdb/top.c b/gdb/top.c
index 1e30b1c..bd42641 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1326,6 +1326,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, _("\

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]