extern mi_command *mi_cmd_lookup (const char *command);
-/* Debug flag */
-extern int mi_debug_p;
-
extern void mi_execute_command (const char *cmd, int from_tty);
#endif /* MI_MI_CMDS_H */
FROM_TTY = 0
};
-int mi_debug_p;
+/* Debug flag */
+static int mi_debug_p;
/* This is used to pass the current command timestamp down to
continuation routines. */
case MI_COMMAND:
/* A MI command was read from the input stream. */
if (mi_debug_p)
- /* FIXME: gdb_???? */
- fprintf_unfiltered (mi->raw_stdout,
+ fprintf_unfiltered (gdb_stdlog,
" token=`%s' command=`%s' args=`%s'\n",
context->token, context->command, context->args);
gdb_assert (args == nullptr);
if (mi_debug_p)
- fprintf_unfiltered (gdb_stdout, "cli=%s run=%s\n",
+ fprintf_unfiltered (gdb_stdlog, "cli=%s run=%s\n",
cmd, run.c_str ());
execute_command (run.c_str (), 0 /* from_tty */ );