summaryrefslogtreecommitdiff
path: root/gdb/mi/mi-interp.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-01 13:33:58 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-01 13:33:58 +0000
commit73a4e6864f7dbbef3381ba1fe64ee2c7caf57a88 (patch)
treeeb773d42c53def59a089b57f2d44dd1ed8be7cda /gdb/mi/mi-interp.c
parent84d0d937976b8079d0992e232c344fe276026aa0 (diff)
downloadgdb-73a4e6864f7dbbef3381ba1fe64ee2c7caf57a88.tar.gz
2004-06-01 Andrew Cagney <cagney@gnu.org>
* mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf instead of xasprintf. * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) (mi_cmd_thread_select, mi_cmd_thread_list_ids) (mi_cmd_data_list_register_names) (mi_cmd_data_list_changed_registers) (mi_cmd_data_list_register_values) (get_register, mi_cmd_data_write_register_values) (mi_cmd_data_write_register_values) (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) (mi_cmd_target_download, mi_cmd_target_select) (mi_cmd_data_read_memory, mi_cmd_data_write_memory) (mi_execute_cli_command, mi_execute_async_cli_command) (mi_execute_async_cli_command): Ditto. * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto. * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r--gdb/mi/mi-interp.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 1a33fde7f44..19dbda5d787 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -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;
}