/* Simulator tracing/debugging support.
- Copyright (C) 1997-2017 Free Software Foundation, Inc.
+ Copyright (C) 1997-2021 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GDB, the GNU debugger.
const char *file_name,
int line_nr,
const char *fmt,
- ...)
- __attribute__((format (printf, 8, 9)));
+ ...) ATTRIBUTE_PRINTF (8, 9);
/* Generic trace print, assumes trace_prefix() has been called */
sim_cpu *cpu,
int trace_idx,
const char *fmt,
- ...)
- __attribute__((format (printf, 4, 5)));
+ ...) ATTRIBUTE_PRINTF (4, 5);
/* Disassemble the specified address. */
\f
extern void trace_printf (SIM_DESC, sim_cpu *, const char *, ...)
- __attribute__((format (printf, 3, 4)));
+ ATTRIBUTE_PRINTF (3, 4);
-extern void trace_vprintf (SIM_DESC, sim_cpu *, const char *, va_list);
+extern void trace_vprintf (SIM_DESC, sim_cpu *, const char *, va_list)
+ ATTRIBUTE_PRINTF (3, 0);
/* Debug support.
This is included here because there isn't enough of it to justify
bfd_vma trace_sym_value (SIM_DESC, const char *name);
extern void sim_debug_printf (sim_cpu *, const char *, ...)
- __attribute__((format (printf, 2, 3)));
+ ATTRIBUTE_PRINTF (2, 3);
#endif /* SIM_TRACE_H */