This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: Turn on initial Ada support in GDB
- From: Paul Hilfinger <hilfingr at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: brobecker at gnat dot com, cagney at gnu dot org
- Date: Fri, 1 Oct 2004 06:41:33 -0400 (EDT)
- Subject: Re: [RFA]: Turn on initial Ada support in GDB
- References: <20040927103327.450A8F2C33@nile.gnat.com> <4159A662.2090407@gnu.org> <20040930073351.6BE79F2BA6@nile.gnat.com> <415CADC5.6050205@gnu.org>
Aside from the documentation patch and the previously posted (and
approved) symtab.c patch, all that remains to give initial Ada support
is the following Makefile.in patch. I will commit this tonight, as
well, but first wanted to give time for comment/protest: building with
Ada currently requires flex (I don't believe that lex has a guaranteed
and blessed way of substituting input sources cleanly at arbitrary
times). Flex is perhaps not a universal utility, and I wondered if I
should also check in ada-lex.c (a practice we've discontinued for
yacc), or should assume that folks who build from the CVS sources are
expected to have flex.
Paul Hilfinger
2004-09-30 Paul N. Hilfinger <Hilfinger@gnat.com>
Turn on initial Ada support (mainly expression evaluation).
* Makefile.in: (HFILES_NO_SRCDIR): Add ada-lang.h.
(COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
(YYOBJ): Add ada-exp.o.
(SFILES): Remove ada-tasks.c.
(rule .l.c): Generalize to not mention ada.
(ada-lex.o): Remove (ada-lex.c is included by ada-exp.y).
(ada-lang.o): Add dependencies on completer.h, gdb_obstack.h,
hashtab.h.
(ada-valprint.o): Add dependency on gdb_string.h.
(ada-exp.o): Add dependency on gdb_string.h.
Index: current-public.103/gdb/Makefile.in
--- current-public.103/gdb/Makefile.in Fri, 01 Oct 2004 00:11:25 -0700 hilfingr
+++ current-public.103(w)/gdb/Makefile.in Fri, 01 Oct 2004 00:23:17 -0700 hilfingr
@@ -510,7 +510,7 @@ TARGET_FLAGS_TO_PASS = \
# Links made at configuration time should not be specified here, since
# SFILES is used in building the distribution archive.
-SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
+SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c \
ax-general.c ax-gdb.c \
bcache.c \
bfd-target.c \
@@ -847,7 +847,7 @@ HFILES_NO_SRCDIR = bcache.h buildsym.h c
symfile.h symfile-mem.h stabsread.h target.h terminal.h typeprint.h \
xcoffsolib.h \
macrotab.h macroexp.h macroscope.h \
- c-lang.h f-lang.h \
+ ada-lang.h c-lang.h f-lang.h \
jv-lang.h \
m2-lang.h p-lang.h \
complaints.h valprint.h \
@@ -908,7 +908,7 @@ COMMON_OBS = $(DEPFILES) $(YYOBJ) \
dbxread.o coffread.o coff-pe-read.o elfread.o \
dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \
dwarf2expr.o dwarf2loc.o dwarf2-frame.o \
- c-lang.o f-lang.o objc-lang.o \
+ ada-lang.o c-lang.o f-lang.o objc-lang.o \
ui-out.o cli-out.o \
varobj.o wrapper.o \
jv-lang.o jv-valprint.o jv-typeprint.o \
@@ -916,8 +916,8 @@ COMMON_OBS = $(DEPFILES) $(YYOBJ) \
scm-exp.o scm-lang.o scm-valprint.o \
sentinel-frame.o \
complaints.o typeprint.o \
- c-typeprint.o f-typeprint.o m2-typeprint.o \
- c-valprint.o cp-valprint.o f-valprint.o m2-valprint.o \
+ ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o \
+ ada-valprint.o c-valprint.o cp-valprint.o f-valprint.o m2-valprint.o \
nlmread.o serial.o mdebugread.o top.o utils.o \
ui-file.o \
user-regs.o \
@@ -941,6 +941,7 @@ YYFILES = c-exp.c \
f-exp.c m2-exp.c p-exp.c
YYOBJ = c-exp.o \
objc-exp.o \
+ ada-exp.o \
jv-exp.o \
f-exp.o m2-exp.o p-exp.o
@@ -1581,7 +1582,7 @@ po/$(PACKAGE).pot: force
echo $(FLEX) -Isit $< ">" $@; \
$(FLEX) -Isit $< > $@; \
elif [ ! -f $@ -a ! -f $< ]; then \
- echo "ada-lex.c missing and flex not available."; \
+ echo "$< missing and flex not available."; \
false; \
elif [ ! -f $@ ]; then \
echo "Warning: $*.c older than $*.l and flex not available."; \