This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix latent yacc-related bug in gdb/Makefile.in init.c rule
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 17 May 2016 20:24:37 -0000
- Subject: [binutils-gdb] Fix latent yacc-related bug in gdb/Makefile.in init.c rule
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9ab0bb2a673875ba15d6956f2c587c9c31f40357
commit 9ab0bb2a673875ba15d6956f2c587c9c31f40357
Author: Tom Tromey <tom@tromey.com>
Date: Thu Mar 31 14:16:56 2016 -0600
Fix latent yacc-related bug in gdb/Makefile.in init.c rule
gdb's Makefile.in does not currently scan .y files to add global
initializers from these files to init.c. However, at least ada-exp.y
tries to use this feature.
This patch fixes the problem.
2016-05-17 Tom Tromey <tom@tromey.com>
* Makefile.in (init.c): Search .y files for initialization
functions.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/Makefile.in | 1 +
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0c25d8a..4b0c44b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (init.c): Search .y files for initialization
+ functions.
+
2016-05-12 Doug Evans <dje@google.com>
PR symtab/19999
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 2af78a5..400d2b0 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1360,6 +1360,7 @@ init.c: $(INIT_FILES)
-e '/version.[co]$$/d' \
-e '/^[a-z0-9A-Z_]*_[SU].[co]$$/d' \
-e '/[a-z0-9A-Z_]*-exp.tab.[co]$$/d' \
+ -e 's/-exp\.o$$/-exp.y/' \
-e 's/\.[co]$$/.c/' \
-e 's,signals\.c,common/signals\.c,' \
-e 's|^\([^ /][^ ]*\)|$(srcdir)/\1|g' | \