From 015218d2cbdcd6f3bd48930f697a4b18f7073211 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 30 Jun 2003 21:38:35 +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 7e125713c62..178b96219ac 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 David Carlton Band-aid for PR c++/1245. 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.47.3