From 1ad828f1985eff39fbe4088d2a30c2f065ebc562 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 30 Jun 2003 21:40:05 +0000 Subject: [PATCH] * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to format error message. --- gdb/ChangeLog | 5 +++++ gdb/utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5903fedb84b..c64b83ceb5e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-06-30 Andreas Schwab + + * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to + format error message. + 2003-06-30 Joel Brobecker * sparc-tdep.c (stop_after_trap): Remove declaration, not used. diff --git a/gdb/utils.c b/gdb/utils.c index 0817353d339..4dfe89b6428 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -724,7 +724,7 @@ internal_vproblem (struct internal_problem *problem, so that the user knows that they are living on the edge. */ { char *msg; - xasprintf (&msg, fmt, ap); + xvasprintf (&msg, fmt, ap); xasprintf (&reason, "\ %s:%d: %s: %s\n\ A problem internal to GDB has been detected,\n\ -- 2.30.2