mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 10:09:16 +08:00
gdb/
* ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.h (complaint, internal_complaint): Likewise. * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. (ATTR_FORMAT): Remove. (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) (xsnprintf, verror, error, vfatal, fatal, internal_verror) (internal_error, internal_vwarning, internal_warning, warning) (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * disasm.c (fprintf_disasm): Likewise. * exceptions.c (throw_it): Likewise. * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) (throw_error): Likewise. * language.h (type_error, range_error): Likewise. * linespec.c (cplusplus_error): Likewise. * mi/mi-interp.c (mi_interp_query_hook): Likewise. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. * monitor.c (monitor_debug): Likewise. * parser-defs.h (parser_fprintf): Likewise. * serial.h (serial_printf): Likewise. * tui/tui-hooks.c (tui_query_hook): Likewise. * ui-out.c (default_field_fmt, default_message, uo_field_fmt) (uo_message): Likewise. * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): Likewise. * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
This commit is contained in:
@ -92,7 +92,7 @@ void (*deprecated_error_begin_hook) (void);
|
||||
/* Prototypes for local functions */
|
||||
|
||||
static void vfprintf_maybe_filtered (struct ui_file *, const char *,
|
||||
va_list, int) ATTR_FORMAT (printf, 2, 0);
|
||||
va_list, int) ATTRIBUTE_PRINTF (2, 0);
|
||||
|
||||
static void fputs_maybe_filtered (const char *, struct ui_file *, int);
|
||||
|
||||
@ -916,7 +916,7 @@ struct internal_problem
|
||||
has been reported, and assuming GDB didn't quit, the caller can
|
||||
either allow execution to resume or throw an error. */
|
||||
|
||||
static void ATTR_FORMAT (printf, 4, 0)
|
||||
static void ATTRIBUTE_PRINTF (4, 0)
|
||||
internal_vproblem (struct internal_problem *problem,
|
||||
const char *file, int line, const char *fmt, va_list ap)
|
||||
{
|
||||
@ -1452,7 +1452,7 @@ gdb_print_host_address (const void *addr, struct ui_file *stream)
|
||||
ARGS are the arguments passed along with the CTLSTR argument to
|
||||
printf. */
|
||||
|
||||
static int ATTR_FORMAT (printf, 1, 0)
|
||||
static int ATTRIBUTE_PRINTF (1, 0)
|
||||
defaulted_query (const char *ctlstr, const char defchar, va_list args)
|
||||
{
|
||||
int answer;
|
||||
|
Reference in New Issue
Block a user