diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-01 13:33:58 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-01 13:33:58 +0000 |
commit | c6902d4692167d1152c6d6b8ee93182d775fe656 (patch) | |
tree | 331a889cd98af35ac3c2da3687db6e2d4ecbdf6e /gdb/mi/mi-interp.c | |
parent | 6085fc2d26557f389a19e00c9288197f66e65ca7 (diff) | |
download | gdb-c6902d4692167d1152c6d6b8ee93182d775fe656.zip gdb-c6902d4692167d1152c6d6b8ee93182d775fe656.tar.gz gdb-c6902d4692167d1152c6d6b8ee93182d775fe656.tar.bz2 |
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.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 1a33fde..19dbda5 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; } |