aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-abi.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2007-10-15 15:22:23 +0000
committerPierre Muller <muller@sourceware.org>2007-10-15 15:22:23 +0000
commit0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9 (patch)
treef71976cb14aca926d3b1866d20fd6d3c09c8ed12 /gdb/cp-abi.c
parent501b79c1d2f5903ad10f2904cc64cf724b55c29d (diff)
downloadgdb-0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9.zip
gdb-0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9.tar.gz
gdb-0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9.tar.bz2
2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
* cp-abi.c (set_cp_abi_as_auto_default): ARI fix: Replace xasprintf by xstrprintf. symfile-mem.c (add_vsyscall_page): Ditto.
Diffstat (limited to 'gdb/cp-abi.c')
-rw-r--r--gdb/cp-abi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index ced1a96..b4b5c31 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -193,10 +193,10 @@ set_cp_abi_as_auto_default (const char *short_name)
auto_cp_abi = *abi;
auto_cp_abi.shortname = "auto";
- xasprintf (&new_longname, "currently \"%s\"", abi->shortname);
+ new_longname = xstrprintf ("currently \"%s\"", abi->shortname);
auto_cp_abi.longname = new_longname;
- xasprintf (&new_doc, "Automatically selected; currently \"%s\"",
+ new_doc = xstrprintf ("Automatically selected; currently \"%s\"",
abi->shortname);
auto_cp_abi.doc = new_doc;