diff options
author | Pedro Alves <palves@redhat.com> | 2019-03-12 16:56:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2019-03-12 16:56:02 +0000 |
commit | ec148c577eaa29f26a943c13b0b66ca3877bb5aa (patch) | |
tree | 55cd532c23dd4f961581503d1c5132b91a0e2461 /gdb/yy-remap.h | |
parent | 3276427003bd1fc676d1cb913c4d09a9f7b1c74f (diff) | |
download | gdb-ec148c577eaa29f26a943c13b0b66ca3877bb5aa.zip gdb-ec148c577eaa29f26a943c13b0b66ca3877bb5aa.tar.gz gdb-ec148c577eaa29f26a943c13b0b66ca3877bb5aa.tar.bz2 |
Fix test-cp-name-parser build, parser_fprintf undefined
$ make test-cp-name-parser
...
test-cp-name-parser.o: In function `yy_symbol_print(_IO_FILE*, int, YYSTYPE const*, cpname_state*)':
build/gdb/cp-name-parser.c.tmp:1335: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)'
build/gdb/cp-name-parser.c.tmp:1339: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)'
test-cp-name-parser.o: In function `yy_stack_print(short*, short*)':
build/gdb/cp-name-parser.c.tmp:1350: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)'
build/gdb/cp-name-parser.c.tmp:1354: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)'
build/gdb/cp-name-parser.c.tmp:1356: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)'
build/gdb/cp-name-parser.c.tmp:1376: more undefined references to `parser_fprintf(_IO_FILE*, char const*, ...)' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:1833: test-cp-name-parser] Error 1
gdb/ChangeLog:
2019-03-12 Pedro Alves <palves@redhat.com>
* yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
Diffstat (limited to 'gdb/yy-remap.h')
-rw-r--r-- | gdb/yy-remap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index 579b7d2..cdd0aae 100644 --- a/gdb/yy-remap.h +++ b/gdb/yy-remap.h @@ -92,6 +92,8 @@ # define YYDEBUG 1 /* Default to yydebug support */ #endif -#define YYFPRINTF parser_fprintf +#ifndef TEST_CPNAMES +# define YYFPRINTF parser_fprintf +#endif #endif /* YY_REMAP_H */ |