aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-11-20 02:06:19 +0000
committerAndrew Cagney <cagney@redhat.com>2000-11-20 02:06:19 +0000
commit76995688e80b6e1b23a39c86325c09de446bc392 (patch)
tree9662cb45a84923439021a369e430e5c9817a9d37 /gdb/defs.h
parent896f186799a2bfa3a154e904abceaee4496933b9 (diff)
downloadgdb-76995688e80b6e1b23a39c86325c09de446bc392.zip
gdb-76995688e80b6e1b23a39c86325c09de446bc392.tar.gz
gdb-76995688e80b6e1b23a39c86325c09de446bc392.tar.bz2
Replace asprintf() / vasprintf() with xasprintf() xvasprintf().
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index dd788e6..63f8345 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -835,6 +835,11 @@ extern PTR xmmalloc (PTR, long);
extern PTR xmrealloc (PTR, PTR, long);
#endif
+/* Like asprintf/vasprintf but get an internal_error if the call
+ fails. */
+extern void xasprintf (char **ret, const char *format, ...) ATTR_FORMAT (printf, 2, 3);
+extern void xvasprintf (char **ret, const char *format, va_list ap);
+
extern int parse_escape (char **);
/* Message to be printed before the error message, when an error occurs. */