diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-11-20 02:06:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-11-20 02:06:19 +0000 |
commit | 76995688e80b6e1b23a39c86325c09de446bc392 (patch) | |
tree | 9662cb45a84923439021a369e430e5c9817a9d37 /gdb/remote.c | |
parent | 896f186799a2bfa3a154e904abceaee4496933b9 (diff) | |
download | gdb-76995688e80b6e1b23a39c86325c09de446bc392.zip gdb-76995688e80b6e1b23a39c86325c09de446bc392.tar.gz gdb-76995688e80b6e1b23a39c86325c09de446bc392.tar.bz2 |
Replace asprintf() / vasprintf() with xasprintf() xvasprintf().
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 9764e58..2b8279c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -574,12 +574,12 @@ add_packet_config_cmd (struct packet_config *config, config->title = title; config->detect = CMD_AUTO_BOOLEAN_AUTO; config->support = PACKET_SUPPORT_UNKNOWN; - asprintf (&set_doc, "Set use of remote protocol `%s' (%s) packet", - name, title); - asprintf (&show_doc, "Show current use of remote protocol `%s' (%s) packet", - name, title); + xasprintf (&set_doc, "Set use of remote protocol `%s' (%s) packet", + name, title); + xasprintf (&show_doc, "Show current use of remote protocol `%s' (%s) packet", + name, title); /* set/show TITLE-packet {auto,on,off} */ - asprintf (&cmd_name, "%s-packet", title); + xasprintf (&cmd_name, "%s-packet", title); set_cmd = add_set_auto_boolean_cmd (cmd_name, class_obscure, &config->detect, set_doc, set_remote_list); @@ -590,7 +590,7 @@ add_packet_config_cmd (struct packet_config *config, if (legacy) { char *legacy_name; - asprintf (&legacy_name, "%s-packet", name); + xasprintf (&legacy_name, "%s-packet", name); add_alias_cmd (legacy_name, cmd_name, class_obscure, 0, set_remote_list); add_alias_cmd (legacy_name, cmd_name, class_obscure, 0, |