Rather than redirect using a define, just rename the symbol fully.
+2015-06-24 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-trace.c (debug_printf): Rename to ...
+ (sim_debug_printf): ... this.
+ * sim-trace.h (debug_printf): Delete define.
+ (debug_printf): Rename to ...
+ (sim_debug_printf): ... this.
+
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (OPTION_TRACE_REGISTER): New enum.
}
void
-debug_printf (sim_cpu *cpu, const char *fmt, ...)
+sim_debug_printf (sim_cpu *cpu, const char *fmt, ...)
{
va_list ap;
/* Non-zero if "--debug-insn" specified. */
#define DEBUG_INSN_P(cpu) DEBUG_P (cpu, DEBUG_INSN_IDX)
-/* GDB also has a debug_printf, so we shadow ours. */
-#define debug_printf sim_debug_printf
-
-extern void debug_printf (sim_cpu *, const char *, ...)
+extern void sim_debug_printf (sim_cpu *, const char *, ...)
__attribute__((format (printf, 2, 3)));
#endif /* SIM_TRACE_H */