4a11f20659
This patch syncs our upstream copy of readline from version 6.2 to the latest version, 7.0 alpha (released July 10 2015). I essentially copied what was done the last time readline was synced, when Jan updated to readline 6.2 in 2011: http://sourceware.org/ml/gdb-patches/2011-05/msg00003.html Procedure: 1. I extracted the readline-7.0-alpha tarball on top of readline/. 2. I deleted all the new files under doc/ that were deliberately omitted before. 3. I regenerated readline/configure and readline/examples/rlfe/configure using autoconf 2.64. No other configure files need regenerating. 4. I updated the function gdb_printable_part in completer.c with a trivial change made to the readline function it is based off of, printable_part in readline/complete.c. There is more work to be done in completer.c to sync it with readline/complete.c, but it is non-trivial and should probably be done separately anyway. Local patches that had to be reapplied: None. readline 7.0 alpha contains all of our local readline patches. New files in readline/: colors.{c,h} examples/{hist_erasedups,hist_purgecmd,rl-callbacktest,rlbasic}.c parse-colors.{c,h} readline.pc.in configure.ac Deleted files in readline/: configure.in Regressions: After the sync there is one testsuite regression, the test "signal SIGINT" in gdb.gdb/selftest.exp which now FAILs. Previously, the readline 6.2 SIGINT handler would temporarily reinstall the underlying application's SIGINT handler and immediately re-raise SIGINT so that the orginal handler gets invoked. But now (since readline 6.3) its SIGINT handler does not re-raise SIGINT or directly invoke the original handler; it now sets a flag marking that SIGINT was raised, and waits until readline explicitly has control to call the application's SIGINT handler. Anyway, because SIGINT is no longer re-raised from within readline's SIGINT handler, doing "signal SIGINT" with a stopped inferior gdb process will no longer resume and then immediately stop the process (since there is no 2nd SIGINT to immediately catch). Instead, the inferior gdb process will now just print "Quit" and continue to run. So with this commit, this particular test case is adjusted to reflect this change in behavior (we now have to send a 2nd SIGINT manually to stop it). Aside from this one testsuite regression, I personally noticed no regression in user-visible behavior. Though I only tested on x86_64 and on i686 Debian Stretch. Getting this kind of change in at the start of the GDB 7.11 development cycle will allow us to get a lot of passive testing from developers and from bleeding-edge users. readline/ChangeLog.gdb: Import readline 7.0 alpha * configure: Regenerate. * examples/rlfe/configure: Regenerate. gdb/ChangeLog: * completer.c (gdb_printable_part): Sync with readline function it is based off of. gdb/testsuite/ChangeLog: * gdb.gdb/selftest.exp (test_with_self): Update test to now expect the GDB inferior to no longer immediately stop after being resumed with "signal SIGINT".
172 lines
5.1 KiB
Makefile
172 lines
5.1 KiB
Makefile
#
|
|
# This is the Makefile for the readline examples subdirectory.
|
|
#
|
|
# Copyright (C) 1994,2008,2009 Free Software Foundation, Inc.
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
RL_LIBRARY_VERSION = @LIBVERSION@
|
|
|
|
SHELL = @MAKE_SHELL@
|
|
RM = rm -f
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
bindir = @bindir@
|
|
srcdir = @srcdir@
|
|
datadir = @datadir@
|
|
VPATH = @srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
#BUILD_DIR = .
|
|
BUILD_DIR = @BUILD_DIR@
|
|
installdir = $(datadir)/readline
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
EXEEXT = @EXEEXT@
|
|
OBJEXT = @OBJEXT@
|
|
|
|
# Support an alternate destination root directory for package building
|
|
DESTDIR =
|
|
|
|
DEFS = @DEFS@
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DREADLINE_LIBRARY -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
INCLUDES = -I$(srcdir) -I$(top_srcdir) -I..
|
|
|
|
CCFLAGS = $(DEFS) $(LOCAL_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
|
LDFLAGS = -g -L.. @LDFLAGS@
|
|
|
|
PURIFY = @PURIFY@
|
|
|
|
READLINE_LIB = ../libreadline.a
|
|
HISTORY_LIB = ../libhistory.a
|
|
|
|
TERMCAP_LIB = @TERMCAP_LIB@
|
|
|
|
.c.o:
|
|
${RM} $@
|
|
$(CC) $(CCFLAGS) -c $<
|
|
|
|
SOURCES = excallback.c fileman.c histexamp.c manexamp.c rl-fgets.c rl.c \
|
|
rlbasic.c rlcat.c rlevent.c rlptytest.c rltest.c rlversion.c \
|
|
rl-callbacktest.c hist_erasedups.c hist_purgecmd.c
|
|
|
|
EXECUTABLES = fileman$(EXEEXT) rltest$(EXEEXT) rl$(EXEEXT) rlcat$(EXEEXT) \
|
|
rlevent$(EXEEXT) rlversion$(EXEEXT) histexamp$(EXEEXT) \
|
|
rl-callbacktest$(EXEEXT) rlbasic$(EXEEXT) \
|
|
hist_erasedups$(EXEEXT) hist_purgecmd$(EXEEXT)
|
|
|
|
OBJECTS = fileman.o rltest.o rl.o rlevent.o rlcat.o rlversion.o histexamp.o \
|
|
rl-callbacktest.o rlbasic.o hist_erasedups.o hist_purgecmd.o
|
|
|
|
OTHEREXE = rlptytest$(EXEEXT)
|
|
OTHEROBJ = rlptytest.o
|
|
|
|
all: $(EXECUTABLES)
|
|
everything: all
|
|
|
|
check: rlversion$(EXEEXT)
|
|
@echo Readline version: `rlversion$(EXEEXT)`
|
|
|
|
installdirs:
|
|
-$(SHELL) $(top_srcdir)/support/mkdirs $(DESTDIR)$(installdir)
|
|
|
|
install: installdirs
|
|
@for f in $(SOURCES); do \
|
|
$(RM) $(DESTDIR)$(installdir)/$$f ; \
|
|
$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(installdir) ; \
|
|
done
|
|
|
|
uninstall:
|
|
@for f in $(SOURCES); do \
|
|
$(RM) $(DESTDIR)$(installdir)/$$f ; \
|
|
done
|
|
-rmdir $(DESTDIR)$(installdir)
|
|
|
|
rl$(EXEEXT): rl.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rlbasic$(EXEEXT): rlbasic.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlbasic.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rlcat$(EXEEXT): rlcat.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rlevent$(EXEEXT): rlevent.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlevent.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
fileman$(EXEEXT): fileman.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rltest$(EXEEXT): rltest.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rltest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rl-callbacktest$(EXEEXT): rl-callbacktest.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rl-callbacktest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rlptytest$(EXEEXT): rlptytest.o $(READLINE_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ rlptytest.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
rlversion$(EXEEXT): rlversion.o $(READLINE_LIB)
|
|
$(CC) $(LDFLAGS) -o $@ rlversion.o $(READLINE_LIB) $(TERMCAP_LIB)
|
|
|
|
histexamp$(EXEEXT): histexamp.o $(HISTORY_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ histexamp.o -lhistory $(TERMCAP_LIB)
|
|
|
|
hist_erasedups$(EXEEXT): hist_erasedups.o $(HISTORY_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ hist_erasedups.o -lhistory $(TERMCAP_LIB)
|
|
|
|
hist_purgecmd$(EXEEXT): hist_purgecmd.o $(HISTORY_LIB)
|
|
$(PURIFY) $(CC) $(LDFLAGS) -o $@ hist_purgecmd.o -lhistory $(TERMCAP_LIB)
|
|
|
|
clean mostlyclean:
|
|
$(RM) $(OBJECTS) $(OTHEROBJ)
|
|
$(RM) $(EXECUTABLES) $(OTHEREXE) *.exe
|
|
|
|
distclean maintainer-clean: clean
|
|
$(RM) Makefile
|
|
|
|
fileman.o: fileman.c
|
|
rltest.o: rltest.c
|
|
rl.o: rl.c
|
|
rlversion.o: rlversion.c
|
|
histexamp.o: histexamp.c
|
|
hist_erasedups.o: hist_erasedups.c
|
|
hist_purgecmd.o: hist_purgecmd.c
|
|
rlbasic.o: rlbasic.c
|
|
rlcat.o: rlcat.c
|
|
rlptytest.o: rlptytest.c
|
|
rl-callbacktest.o: rl-callbacktest.c
|
|
|
|
fileman.o: $(top_srcdir)/readline.h
|
|
rltest.o: $(top_srcdir)/readline.h
|
|
rl.o: $(top_srcdir)/readline.h
|
|
rlversion.o: $(top_srcdir)/readline.h
|
|
histexamp.o: $(top_srcdir)/history.h
|
|
hist_erasedups.o: $(top_srcdir)/history.h
|
|
hist_purgecmd.o: $(top_srcdir)/history.h
|
|
rlbasic.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
|
rlcat.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
|
rlptytest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|
|
rl-callbacktest.o: $(top_srcdir)/readline.h $(top_srcdir)/history.h
|