diff options
author | Pedro Alves <palves@redhat.com> | 2016-11-17 14:53:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-11-17 14:53:02 +0000 |
commit | 66be918f5f9f78d74c70aa332756286ff9d0ccf2 (patch) | |
tree | 79a4fbb6c2261af6487253e2455edcc7c46331be /gdb/frame.h | |
parent | 7c2683c40f745397e80b6df4edf8265ecb6fd194 (diff) | |
download | gdb-66be918f5f9f78d74c70aa332756286ff9d0ccf2.zip gdb-66be918f5f9f78d74c70aa332756286ff9d0ccf2.tar.gz gdb-66be918f5f9f78d74c70aa332756286ff9d0ccf2.tar.bz2 |
gdb/c-exp.y: fprintf -> parser_fprintf
Switching GDB to make use of gnulib's C++ namespace support mode
revealed these direct uses of fprintf in the C parser, where
parser_fprintf should be used to handle rewiring stderr to gdb_stderr:
..../src/gdb/c-exp.y: In function ‘void c_print_token(FILE*, int, YYSTYPE)’:
..../src/gdb/c-exp.y:3220:45: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
pulongest (value.typed_val_int.val));
^
..../src/gdb/c-exp.y:3231:62: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
fprintf (file, "tsval<type=%d, %s>", value.tsval.type, copy);
^
..../src/gdb/c-exp.y:3237:57: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
fprintf (file, "sval<%s>", copy_name (value.sval));
^
..../src/gdb/c-exp.y:3243:39: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
copy_name (value.tsym.stoken));
^
..../src/gdb/c-exp.y:3254:39: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
value.ssym.is_a_field_of_this);
^
..../src/gdb/c-exp.y:3258:70: error: call to ‘fprintf’ declared with attribute warning: The symbol ::fprintf refers to the system function. Use gnulib::fprintf instead. [-Werror]
fprintf (file, "bval<%s>", host_address_to_string (value.bval));
^
gdb/ChangeLog:
2016-11-17 Pedro Alves <palves@redhat.com>
* c-exp.y (c_print_token): Use parser_fprintf instead of fprintf.
Diffstat (limited to 'gdb/frame.h')
0 files changed, 0 insertions, 0 deletions