Revisión | 86c6b807f50ecec84e55007bf6cb6e54c159727b (tree) |
---|---|
Tiempo | 2019-08-13 01:57:56 |
Autor | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2019-08-12 Tom Tromey <tom@tromey.com> |
2 | 2 | |
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 | + | |
3 | 10 | * mingw-hdep.c (gdb_select): Remove readline hack. |
4 | 11 | |
5 | 12 | 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
@@ -299,6 +299,11 @@ maint show test-options-completion-result | ||
299 | 299 | Using another implementation of the make program or an earlier version of |
300 | 300 | GNU make to build GDB or GDBserver is not supported. |
301 | 301 | |
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 | + | |
302 | 307 | *** Changes in GDB 8.3 |
303 | 308 | |
304 | 309 | * GDB and GDBserver now support access to additional registers on |
@@ -439,7 +439,8 @@ more obscure GDB `configure' options are not listed here. | ||
439 | 439 | |
440 | 440 | `--with-system-readline' |
441 | 441 | 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. | |
443 | 444 | |
444 | 445 | `--with-system-zlib |
445 | 446 | Use the zlib library installed on the host, rather than the |
@@ -8952,6 +8952,38 @@ fi | ||
8952 | 8952 | |
8953 | 8953 | |
8954 | 8954 | 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 | + | |
8955 | 8987 | READLINE=-lreadline |
8956 | 8988 | READLINE_DEPS= |
8957 | 8989 | READLINE_CFLAGS= |
@@ -581,6 +581,20 @@ AC_ARG_WITH([system-readline], | ||
581 | 581 | [use installed readline library])]) |
582 | 582 | |
583 | 583 | 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 | + | |
584 | 598 | READLINE=-lreadline |
585 | 599 | READLINE_DEPS= |
586 | 600 | READLINE_CFLAGS= |
@@ -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 | + | |
1 | 6 | 2019-08-09 Alan Hayward <alan.hayward@arm.com> |
2 | 7 | |
3 | 8 | * gdb.texinfo (AArch64 Pointer Authentication): Fix typo. |
@@ -36905,7 +36905,8 @@ details. | ||
36905 | 36905 | |
36906 | 36906 | @item --with-system-readline |
36907 | 36907 | 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. | |
36909 | 36910 | |
36910 | 36911 | @item --with-system-zlib |
36911 | 36912 | Use the zlib library installed on the host, rather than the library |