From 0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 15 Oct 2007 15:22:23 +0000 Subject: [PATCH] 2007-10-15 Pierre Muller * cp-abi.c (set_cp_abi_as_auto_default): ARI fix: Replace xasprintf by xstrprintf. symfile-mem.c (add_vsyscall_page): Ditto. --- gdb/ChangeLog | 6 ++++++ gdb/cp-abi.c | 4 ++-- gdb/symfile-mem.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 586e4d89ebc..4358bd0e161 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-10-15 Pierre Muller + + * cp-abi.c (set_cp_abi_as_auto_default): ARI fix: + Replace xasprintf by xstrprintf. + symfile-mem.c (add_vsyscall_page): Ditto. + 2007-10-12 Ulrich Weigand * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter, diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index ced1a96b965..b4b5c31449e 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; diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index 269a14d5513..65f5623eacf 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -196,7 +196,7 @@ try using the \"file\" command first.")); } args.bfd = bfd; args.sysinfo_ehdr = sysinfo_ehdr; - xasprintf (&args.name, "system-supplied DSO at 0x%s", + args.name = xstrprintf ("system-supplied DSO at 0x%s", paddr_nz (sysinfo_ehdr)); /* Pass zero for FROM_TTY, because the action of loading the vsyscall DSO was not triggered by the user, even if the user -- 2.30.2