This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix internal_vproblem


Committing as obvious, both HEAD and 6.0 branch.

Andreas.

2003-06-30  Andreas Schwab  <schwab@suse.de>

	* utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
	format error message.

--- gdb/utils.c.~1.102.~	2003-06-26 23:00:19.000000000 +0200
+++ gdb/utils.c	2003-06-30 22:58:14.000000000 +0200
@@ -724,7 +724,7 @@ internal_vproblem (struct internal_probl
      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\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]