1 diff -urN gdb-6.0.org/gdb/event-top.c gdb-6.0/gdb/event-top.c
2 --- gdb-6.0.org/gdb/event-top.c 2003-10-09 19:42:39.000000000 +0200
3 +++ gdb-6.0/gdb/event-top.c 2003-10-09 19:48:08.000000000 +0200
7 /* readline include files */
9 #include <readline/readline.h>
10 #include <readline/history.h>
12 diff -urN gdb-6.0.org/gdb/gdbserver/Makefile.in gdb-6.0/gdb/gdbserver/Makefile.in
13 --- gdb-6.0.org/gdb/gdbserver/Makefile.in 2003-10-09 19:42:41.000000000 +0200
14 +++ gdb-6.0/gdb/gdbserver/Makefile.in 2003-10-09 19:48:08.000000000 +0200
17 # Where is the source dir for the READLINE library? Traditionally in .. or .
18 # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
19 -READLINE_DIR = ${srcdir}/../readline
20 +READLINE_DIR = /usr/lib
21 READLINE_DEP = $$(READLINE_DIR)
23 # All the includes used for CFLAGS and for lint.
24 diff -urN gdb-6.0.org/gdb/Makefile.in gdb-6.0/gdb/Makefile.in
25 --- gdb-6.0.org/gdb/Makefile.in 2003-10-09 19:42:39.000000000 +0200
26 +++ gdb-6.0/gdb/Makefile.in 2003-10-09 19:48:08.000000000 +0200
28 BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
30 # Where is the READLINE library? Typically in ../readline.
31 -READLINE_DIR = ../readline
32 -READLINE = $(READLINE_DIR)/libreadline.a
33 -READLINE_SRC = $(srcdir)/$(READLINE_DIR)
34 -READLINE_CFLAGS = -I$(READLINE_SRC)/..
35 +READLINE_DIR = /usr/include/readline
36 +READLINE = -lreadline
37 +READLINE_SRC = /usr/include/readline
38 +READLINE_CFLAGS = -I/usr/include/readline
40 WARN_CFLAGS = @WARN_CFLAGS@
41 WERROR_CFLAGS = @WERROR_CFLAGS@
42 diff -urN gdb-6.0.org/gdb/top.c gdb-6.0/gdb/top.c
43 --- gdb-6.0.org/gdb/top.c 2003-10-09 19:42:40.000000000 +0200
44 +++ gdb-6.0/gdb/top.c 2003-10-09 19:48:08.000000000 +0200
46 #include "gdb_assert.h"
48 /* readline include files */
50 #include <readline/readline.h>
51 #include <readline/history.h>
53 diff -urN gdb-6.0.org/gdb/tracepoint.c gdb-6.0/gdb/tracepoint.c
54 --- gdb-6.0.org/gdb/tracepoint.c 2003-10-09 19:42:40.000000000 +0200
55 +++ gdb-6.0/gdb/tracepoint.c 2003-10-09 19:48:08.000000000 +0200
59 /* readline include files */
61 #include <readline/readline.h>
62 #include <readline/history.h>
64 diff -urN gdb-6.0.org/gdb/utils.c gdb-6.0/gdb/utils.c
65 --- gdb-6.0.org/gdb/utils.c 2003-10-09 19:42:40.000000000 +0200
66 +++ gdb-6.0/gdb/utils.c 2003-10-09 19:48:08.000000000 +0200
72 #include <readline/readline.h>
75 diff -urN gdb-6.0.org/Makefile.in gdb-6.0/Makefile.in
76 --- gdb-6.0.org/Makefile.in 2003-10-09 19:42:43.000000000 +0200
77 +++ gdb-6.0/Makefile.in 2003-10-09 19:52:00.000000000 +0200
79 maybe-configure-perl \
80 maybe-configure-prms \
82 - maybe-configure-readline \
83 maybe-configure-release \
84 maybe-configure-recode \
90 - maybe-all-readline \
98 - maybe-info-readline \
102 @@ -1731,28 +1728,6 @@
106 -.PHONY: maybe-info-readline info-readline
107 -maybe-info-readline:
111 - @[ -f ./readline/Makefile ] || exit 0; \
112 - r=`${PWD}`; export r; \
113 - s=`cd $(srcdir); ${PWD}`; export s; \
115 - for flag in $(EXTRA_HOST_FLAGS); do \
116 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
118 - echo "Doing info in readline" ; \
120 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
121 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
122 - "RANLIB=$${RANLIB}" \
123 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
128 .PHONY: maybe-info-release info-release
131 @@ -2639,7 +2614,6 @@
135 - maybe-dvi-readline \
139 @@ -3607,28 +3581,6 @@
143 -.PHONY: maybe-dvi-readline dvi-readline
148 - @[ -f ./readline/Makefile ] || exit 0; \
149 - r=`${PWD}`; export r; \
150 - s=`cd $(srcdir); ${PWD}`; export s; \
152 - for flag in $(EXTRA_HOST_FLAGS); do \
153 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
155 - echo "Doing dvi in readline" ; \
157 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
158 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
159 - "RANLIB=$${RANLIB}" \
160 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
165 .PHONY: maybe-dvi-release dvi-release
168 @@ -4515,7 +4467,6 @@
172 - maybe-TAGS-readline \
176 @@ -5483,28 +5434,6 @@
180 -.PHONY: maybe-TAGS-readline TAGS-readline
181 -maybe-TAGS-readline:
185 - @[ -f ./readline/Makefile ] || exit 0; \
186 - r=`${PWD}`; export r; \
187 - s=`cd $(srcdir); ${PWD}`; export s; \
189 - for flag in $(EXTRA_HOST_FLAGS); do \
190 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
192 - echo "Doing TAGS in readline" ; \
194 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
195 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
196 - "RANLIB=$${RANLIB}" \
197 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
202 .PHONY: maybe-TAGS-release TAGS-release
205 @@ -6391,7 +6320,6 @@
206 maybe-install-info-perl \
207 maybe-install-info-prms \
208 maybe-install-info-rcs \
209 - maybe-install-info-readline \
210 maybe-install-info-release \
211 maybe-install-info-recode \
212 maybe-install-info-sed \
213 @@ -7401,29 +7329,6 @@
217 -.PHONY: maybe-install-info-readline install-info-readline
218 -maybe-install-info-readline:
220 -install-info-readline: \
221 - configure-readline \
223 - @[ -f ./readline/Makefile ] || exit 0; \
224 - r=`${PWD}`; export r; \
225 - s=`cd $(srcdir); ${PWD}`; export s; \
227 - for flag in $(EXTRA_HOST_FLAGS); do \
228 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
230 - echo "Doing install-info in readline" ; \
232 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
233 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
234 - "RANLIB=$${RANLIB}" \
235 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
240 .PHONY: maybe-install-info-release install-info-release
241 maybe-install-info-release:
243 @@ -8348,7 +8253,6 @@
244 maybe-installcheck-perl \
245 maybe-installcheck-prms \
246 maybe-installcheck-rcs \
247 - maybe-installcheck-readline \
248 maybe-installcheck-release \
249 maybe-installcheck-recode \
250 maybe-installcheck-sed \
251 @@ -9316,28 +9220,6 @@
255 -.PHONY: maybe-installcheck-readline installcheck-readline
256 -maybe-installcheck-readline:
258 -installcheck-readline: \
260 - @[ -f ./readline/Makefile ] || exit 0; \
261 - r=`${PWD}`; export r; \
262 - s=`cd $(srcdir); ${PWD}`; export s; \
264 - for flag in $(EXTRA_HOST_FLAGS); do \
265 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
267 - echo "Doing installcheck in readline" ; \
269 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
270 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
271 - "RANLIB=$${RANLIB}" \
272 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
277 .PHONY: maybe-installcheck-release installcheck-release
278 maybe-installcheck-release:
280 @@ -10224,7 +10106,6 @@
281 maybe-mostlyclean-perl \
282 maybe-mostlyclean-prms \
283 maybe-mostlyclean-rcs \
284 - maybe-mostlyclean-readline \
285 maybe-mostlyclean-release \
286 maybe-mostlyclean-recode \
287 maybe-mostlyclean-sed \
288 @@ -11136,27 +11017,6 @@
292 -.PHONY: maybe-mostlyclean-readline mostlyclean-readline
293 -maybe-mostlyclean-readline:
295 -mostlyclean-readline:
296 - @[ -f ./readline/Makefile ] || exit 0; \
297 - r=`${PWD}`; export r; \
298 - s=`cd $(srcdir); ${PWD}`; export s; \
300 - for flag in $(EXTRA_HOST_FLAGS); do \
301 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
303 - echo "Doing mostlyclean in readline" ; \
305 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
306 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
307 - "RANLIB=$${RANLIB}" \
308 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
313 .PHONY: maybe-mostlyclean-release mostlyclean-release
314 maybe-mostlyclean-release:
316 @@ -11977,7 +11837,6 @@
320 - maybe-clean-readline \
321 maybe-clean-release \
324 @@ -12903,27 +12762,6 @@
328 -.PHONY: maybe-clean-readline clean-readline
329 -maybe-clean-readline:
332 - @[ -f ./readline/Makefile ] || exit 0; \
333 - r=`${PWD}`; export r; \
334 - s=`cd $(srcdir); ${PWD}`; export s; \
336 - for flag in $(EXTRA_HOST_FLAGS); do \
337 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
339 - echo "Doing clean in readline" ; \
341 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
342 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
343 - "RANLIB=$${RANLIB}" \
344 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
349 .PHONY: maybe-clean-release clean-release
352 @@ -13744,7 +13582,6 @@
353 maybe-distclean-perl \
354 maybe-distclean-prms \
355 maybe-distclean-rcs \
356 - maybe-distclean-readline \
357 maybe-distclean-release \
358 maybe-distclean-recode \
359 maybe-distclean-sed \
360 @@ -14670,27 +14507,6 @@
364 -.PHONY: maybe-distclean-readline distclean-readline
365 -maybe-distclean-readline:
368 - @[ -f ./readline/Makefile ] || exit 0; \
369 - r=`${PWD}`; export r; \
370 - s=`cd $(srcdir); ${PWD}`; export s; \
372 - for flag in $(EXTRA_HOST_FLAGS); do \
373 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
375 - echo "Doing distclean in readline" ; \
377 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
378 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
379 - "RANLIB=$${RANLIB}" \
380 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
385 .PHONY: maybe-distclean-release distclean-release
386 maybe-distclean-release:
388 @@ -15511,7 +15327,6 @@
389 maybe-maintainer-clean-perl \
390 maybe-maintainer-clean-prms \
391 maybe-maintainer-clean-rcs \
392 - maybe-maintainer-clean-readline \
393 maybe-maintainer-clean-release \
394 maybe-maintainer-clean-recode \
395 maybe-maintainer-clean-sed \
396 @@ -16437,27 +16252,6 @@
400 -.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
401 -maybe-maintainer-clean-readline:
403 -maintainer-clean-readline:
404 - @[ -f ./readline/Makefile ] || exit 0; \
405 - r=`${PWD}`; export r; \
406 - s=`cd $(srcdir); ${PWD}`; export s; \
408 - for flag in $(EXTRA_HOST_FLAGS); do \
409 - eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
411 - echo "Doing maintainer-clean in readline" ; \
413 - $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
414 - "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
415 - "RANLIB=$${RANLIB}" \
416 - "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
417 - maintainer-clean) \
421 .PHONY: maybe-maintainer-clean-release maintainer-clean-release
422 maybe-maintainer-clean-release:
424 @@ -17336,7 +17130,6 @@
428 - maybe-check-readline \
429 maybe-check-release \
432 @@ -17445,7 +17238,6 @@
436 - maybe-install-readline \
437 maybe-install-release \
438 maybe-install-recode \
440 @@ -17512,7 +17304,6 @@
444 - maybe-install-readline \
445 maybe-install-release \
446 maybe-install-recode \
448 @@ -20393,72 +20184,6 @@
449 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
452 -.PHONY: configure-readline maybe-configure-readline
453 -maybe-configure-readline:
455 - @test ! -f readline/Makefile || exit 0; \
456 - [ -d readline ] || mkdir readline; \
457 - r=`${PWD}`; export r; \
458 - s=`cd $(srcdir); ${PWD}`; export s; \
459 - CC="$(CC)"; export CC; \
460 - CFLAGS="$(CFLAGS)"; export CFLAGS; \
461 - CXX="$(CXX)"; export CXX; \
462 - CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
463 - AR="$(AR)"; export AR; \
464 - AS="$(AS)"; export AS; \
465 - CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
466 - DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
467 - LD="$(LD)"; export LD; \
468 - NM="$(NM)"; export NM; \
469 - RANLIB="$(RANLIB)"; export RANLIB; \
470 - WINDRES="$(WINDRES)"; export WINDRES; \
471 - OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
472 - OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
473 - echo Configuring in readline; \
474 - cd readline || exit 1; \
475 - case $(srcdir) in \
477 - srcdiroption="--srcdir=."; \
479 - /* | [A-Za-z]:[\\/]*) \
480 - srcdiroption="--srcdir=$(srcdir)/readline"; \
481 - libsrcdir="$$s/readline";; \
483 - srcdiroption="--srcdir=../$(srcdir)/readline"; \
484 - libsrcdir="$$s/readline";; \
486 - $(SHELL) $${libsrcdir}/configure \
487 - $(HOST_CONFIGARGS) $${srcdiroption} \
490 -.PHONY: all-readline maybe-all-readline
492 -all-readline: configure-readline
493 - @r=`${PWD}`; export r; \
494 - s=`cd $(srcdir); ${PWD}`; export s; \
496 - (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
498 -.PHONY: check-readline maybe-check-readline
499 -maybe-check-readline:
502 - @r=`${PWD}`; export r; \
503 - s=`cd $(srcdir); ${PWD}`; export s; \
505 - (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
508 -.PHONY: install-readline maybe-install-readline
509 -maybe-install-readline:
511 -install-readline: installdirs
512 - @r=`${PWD}`; export r; \
513 - s=`cd $(srcdir); ${PWD}`; export s; \
515 - (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
518 .PHONY: configure-release maybe-configure-release
519 maybe-configure-release:
521 @@ -23750,7 +23475,7 @@
522 # GDB needs to know that the simulator is being built.
523 configure-gdb: maybe-configure-itcl maybe-configure-tcl maybe-configure-tk maybe-configure-sim
525 -all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
526 +all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
527 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
528 configure-libgui: maybe-configure-tcl maybe-configure-tk
529 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
530 @@ -23781,7 +23506,7 @@
531 install-itcl: maybe-install-tcl
532 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
533 install-sid: maybe-install-tcl maybe-install-tk
534 -all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
535 +all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-configure-gdb
536 configure-tk: maybe-configure-tcl
537 all-tk: maybe-all-tcl
538 configure-tix: maybe-configure-tcl maybe-configure-tk