* mi/mi-cmds.h (mi_error_last_message): Delete declaration.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Call
error_last_message instead of mi_error_last_message.
* mi/mi-main.c (mi_error_last_message): Delete function.
2004-06-01 Andrew Cagney <cagney@gnu.org>
+ * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
+ * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
+ error_last_message instead of mi_error_last_message.
+ * mi/mi-main.c (mi_error_last_message): Delete function.
+
* mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
"invalid number of columns" error. Delete redundant "out of
memory" check.
extern struct ui_file *raw_stdout;
extern char *mi_error_message;
-extern void mi_error_last_message (void);
extern void mi_execute_command (char *cmd, int from_tty);
#endif
sync_execution = 1;
if (interp_exec (interp_to_use, argv[i]) < 0)
{
- mi_error_last_message ();
+ mi_error_message = error_last_message ();
result = MI_CMD_ERROR;
break;
}
static int register_changed_p (int regnum);
static int get_register (int regnum, int format);
-/* A helper function which will set mi_error_message to
- error_last_message. */
-void
-mi_error_last_message (void)
-{
- char *s = error_last_message ();
- xasprintf (&mi_error_message, "%s", s);
- xfree (s);
-}
-
/* Command implementations. FIXME: Is this libgdb? No. This is the MI
layer that calls libgdb. Any operation used in the below should be
formalized. */