2004-06-01 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Tue, 1 Jun 2004 13:15:02 +0000 (13:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 1 Jun 2004 13:15:02 +0000 (13:15 +0000)
* 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.

gdb/ChangeLog
gdb/mi/mi-cmds.h
gdb/mi/mi-interp.c
gdb/mi/mi-main.c

index f4931d7a3b9b1c793faedbd1d83d56c39fe7f156..e3e538dd93643a85132efb596658b69675573e15 100644 (file)
@@ -1,5 +1,10 @@
 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.
index 545305986c608286cef1b0548acd7e25e35e9742..095f31679f33eb4119b9edd3e3f6a3c1a6f4676f 100644 (file)
@@ -146,7 +146,6 @@ extern int mi_debug_p;
 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
index 1a3031f2a61e2d2d452798407d6554c6ebb2e34f..1a33fde7f44c4b4e36d531677499815de0825cdd 100644 (file)
@@ -246,7 +246,7 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc)
       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;
        }
index 02ed6284152b38f566113f35e9ba978c4142fed6..697b20c14300cfa482a0c10386e0deeb5004bba4 100644 (file)
@@ -99,16 +99,6 @@ static void mi_exec_async_cli_cmd_continuation (struct continuation_arg *arg);
 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. */
This page took 0.029106 seconds and 4 git commands to generate.