aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-05-30 17:49:31 +0200
committerTom de Vries <tdevries@suse.de>2023-05-30 17:49:31 +0200
commit37d9880d653c1d91e763c6b6ab22c28883996447 (patch)
tree03a53b1887675e73889217b38c74b1efa4fc1ef9 /gdb/top.c
parent35f8b0595f70b7ea644fd38c1c14eeaa9a01430c (diff)
downloadgdb-37d9880d653c1d91e763c6b6ab22c28883996447.zip
gdb-37d9880d653c1d91e763c6b6ab22c28883996447.tar.gz
gdb-37d9880d653c1d91e763c6b6ab22c28883996447.tar.bz2
[gdb] Mention --with/without-system-readline for --configuration
Simon reported that the new test-case gdb.tui/pr30056.exp fails with system readline. This is because the test-case requires a fix in readline that's present in our in-repo copy of readline, but most likely not in any system readline yet. Fix this by: - mentioning --with-system-readline or --without-system-readline in the configuration string. - adding a new proc with_system_readline that makes this information available in the testsuite. - using this in test-case gdb.tui/pr30056.exp to declare it unsupported for --with-system-readline. Tested on x86_64-linux. Reported-By: Simon Marchi <simon.marchi@efficios.com> Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 92de30a..90ddc5f 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1560,6 +1560,16 @@ This GDB was configured as follows:\n\
"));
#endif
+#ifdef HAVE_READLINE_READLINE_H
+ gdb_printf (stream, _("\
+ --with-system-readline\n\
+"));
+#else
+ gdb_printf (stream, _("\
+ --without-system-readline\n\
+"));
+#endif
+
#ifdef RELOC_SRCDIR
gdb_printf (stream, _("\
--with-relocated-sources=%s\n\