aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-29 14:57:39 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-29 14:57:39 +0000
commite623b5041fed796282b4dd432e59fcab026136ca (patch)
treee16ee3bd0fc75d3148a8b683137ee7ccd4a04970 /gdb/defs.h
parent3874ed78d9c5c18fc0f4b2f9bd76f4f0232d691e (diff)
downloadgdb-e623b5041fed796282b4dd432e59fcab026136ca.zip
gdb-e623b5041fed796282b4dd432e59fcab026136ca.tar.gz
gdb-e623b5041fed796282b4dd432e59fcab026136ca.tar.bz2
2004-06-28 Andrew Cagney <cagney@gnu.org>
* defs.h (xstrvprintf): Declare. * utils.c (xstrvprintf): New function. (internal_vproblem, xstrprintf, xasprintf) (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf. * serial.c (serial_printf): Ditto. * complaints.c (vcomplaint): Ditto.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 99d64bb..8ccad52 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -892,8 +892,10 @@ extern void xfree (void *);
extern void xasprintf (char **ret, const char *format, ...) ATTR_FORMAT (printf, 2, 3);
extern void xvasprintf (char **ret, const char *format, va_list ap);
-/* Like asprintf, but return the string, throw an error if no memory. */
+/* Like asprintf and vasprintf, but return the string, throw an error
+ if no memory. */
extern char *xstrprintf (const char *format, ...) ATTR_FORMAT (printf, 1, 2);
+extern char *xstrvprintf (const char *format, va_list ap);
extern int parse_escape (char **);