diff options
author | Tom Tromey <tom@tromey.com> | 2016-03-31 14:16:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-05-17 12:01:57 -0600 |
commit | 9ab0bb2a673875ba15d6956f2c587c9c31f40357 (patch) | |
tree | 396a949de0e19a1ea016717cdf860b6229075ba6 /gdb/Makefile.in | |
parent | 5ff087ac1870878ad980503f5c8b60b6ffa32350 (diff) | |
download | gdb-9ab0bb2a673875ba15d6956f2c587c9c31f40357.zip gdb-9ab0bb2a673875ba15d6956f2c587c9c31f40357.tar.gz gdb-9ab0bb2a673875ba15d6956f2c587c9c31f40357.tar.bz2 |
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.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 1 |
1 files changed, 1 insertions, 0 deletions
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' | \ |