• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision86c6b807f50ecec84e55007bf6cb6e54c159727b (tree)
Time2019-08-13 01:57:56
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

Require readline 7 or newer

This changes gdb to require readline 7 or newer at build time.

gdb/ChangeLog
2019-08-12 Tom Tromey <tom@tromey.com>

* configure: Rebuild.
* configure.ac: Check for readline 7.
* NEWS: Mention readline 7 requirement.
* README: Update.

gdb/doc/ChangeLog
2019-08-12 Tom Tromey <tom@tromey.com>

* gdb.texinfo (Configure Options): Document minimum version of
readline.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
11 2019-08-12 Tom Tromey <tom@tromey.com>
22
3+ * configure: Rebuild.
4+ * configure.ac: Check for readline 7.
5+ * NEWS: Mention readline 7 requirement.
6+ * README: Update.
7+
8+2019-08-12 Tom Tromey <tom@tromey.com>
9+
310 * mingw-hdep.c (gdb_select): Remove readline hack.
411
512 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -299,6 +299,11 @@ maint show test-options-completion-result
299299 Using another implementation of the make program or an earlier version of
300300 GNU make to build GDB or GDBserver is not supported.
301301
302+* Building GDB now requires GNU readline >= 7.0.
303+
304+ GDB now bundles GNU readline 8.0, but if you choose to use
305+ --with-system-readline, only readline >= 7.0 can be used.
306+
302307 *** Changes in GDB 8.3
303308
304309 * GDB and GDBserver now support access to additional registers on
--- a/gdb/README
+++ b/gdb/README
@@ -439,7 +439,8 @@ more obscure GDB `configure' options are not listed here.
439439
440440 `--with-system-readline'
441441 Use the readline library installed on the host, rather than the
442- library supplied as part of GDB.
442+ library supplied as part of GDB. Readline 7 or newer is required;
443+ this is enforced by the build system.
443444
444445 `--with-system-zlib
445446 Use the zlib library installed on the host, rather than the
--- a/gdb/configure
+++ b/gdb/configure
@@ -8952,6 +8952,38 @@ fi
89528952
89538953
89548954 if test "$with_system_readline" = yes; then
8955+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
8956+$as_echo_n "checking whether system readline is new enough... " >&6; }
8957+if ${gdb_cv_readline_ok+:} false; then :
8958+ $as_echo_n "(cached) " >&6
8959+else
8960+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961+/* end confdefs.h. */
8962+#include <stdio.h>
8963+#include <readline/readline.h>
8964+int
8965+main ()
8966+{
8967+#if RL_VERSION_MAJOR < 7
8968+# error "readline version 7 required"
8969+#endif
8970+ ;
8971+ return 0;
8972+}
8973+_ACEOF
8974+if ac_fn_c_try_compile "$LINENO"; then :
8975+ gdb_cv_readline_ok=yes
8976+else
8977+ gdb_cv_readline_ok=no
8978+fi
8979+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980+fi
8981+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
8982+$as_echo "$gdb_cv_readline_ok" >&6; }
8983+ if test "$gdb_cv_readline_ok" != yes; then
8984+ as_fn_error $? "system readline is not new enough" "$LINENO" 5
8985+ fi
8986+
89558987 READLINE=-lreadline
89568988 READLINE_DEPS=
89578989 READLINE_CFLAGS=
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -581,6 +581,20 @@ AC_ARG_WITH([system-readline],
581581 [use installed readline library])])
582582
583583 if test "$with_system_readline" = yes; then
584+ AC_CACHE_CHECK([whether system readline is new enough],
585+ [gdb_cv_readline_ok],
586+ [AC_TRY_COMPILE(
587+ [#include <stdio.h>
588+#include <readline/readline.h>],
589+ [#if RL_VERSION_MAJOR < 7
590+# error "readline version 7 required"
591+#endif],
592+ gdb_cv_readline_ok=yes,
593+ gdb_cv_readline_ok=no)])
594+ if test "$gdb_cv_readline_ok" != yes; then
595+ AC_MSG_ERROR([system readline is not new enough])
596+ fi
597+
584598 READLINE=-lreadline
585599 READLINE_DEPS=
586600 READLINE_CFLAGS=
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
1+2019-08-12 Tom Tromey <tom@tromey.com>
2+
3+ * gdb.texinfo (Configure Options): Document minimum version of
4+ readline.
5+
16 2019-08-09 Alan Hayward <alan.hayward@arm.com>
27
38 * gdb.texinfo (AArch64 Pointer Authentication): Fix typo.
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -36905,7 +36905,8 @@ details.
3690536905
3690636906 @item --with-system-readline
3690736907 Use the readline library installed on the host, rather than the
36908-library supplied as part of @value{GDBN}.
36908+library supplied as part of @value{GDBN}. Readline 7 or newer is
36909+required; this is enforced by the build system.
3690936910
3691036911 @item --with-system-zlib
3691136912 Use the zlib library installed on the host, rather than the library