2004-06-01 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / mi / mi-interp.c
index 1a33fde7f44c4b4e36d531677499815de0825cdd..19dbda5d7879b35c3379b67eb00a70a0876d723f 100644 (file)
@@ -194,25 +194,21 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc)
 
   if (argc < 2)
     {
-      xasprintf (&mi_error_message,
-                "mi_cmd_interpreter_exec: Usage: -interpreter-exec interp command");
+      mi_error_message = xstrprintf ("mi_cmd_interpreter_exec: Usage: -interpreter-exec interp command");
       return MI_CMD_ERROR;
     }
 
   interp_to_use = interp_lookup (argv[0]);
   if (interp_to_use == NULL)
     {
-      xasprintf (&mi_error_message,
-                "mi_cmd_interpreter_exec: could not find interpreter \"%s\"",
-                argv[0]);
+      mi_error_message = xstrprintf ("mi_cmd_interpreter_exec: could not find interpreter \"%s\"", argv[0]);
       return MI_CMD_ERROR;
     }
 
   if (!interp_exec_p (interp_to_use))
     {
-      xasprintf (&mi_error_message,
-                "mi_cmd_interpreter_exec: interpreter \"%s\" does not support command execution",
-                argv[0]);
+      mi_error_message = xstrprintf ("mi_cmd_interpreter_exec: interpreter \"%s\" does not support command execution",
+                                    argv[0]);
       return MI_CMD_ERROR;
     }
 
This page took 0.025015 seconds and 4 git commands to generate.