diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-29 17:23:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-29 17:23:17 +0000 |
commit | 2b6347507c36980533d1d8e70365f0d85e8ed72e (patch) | |
tree | 26d7a346f3b798a477377e23fc748c6c06ef572c /gdb/common | |
parent | af8c469b2367e94df07d22fd9d6f64617f5f2e80 (diff) | |
download | gdb-2b6347507c36980533d1d8e70365f0d85e8ed72e.tar.gz |
* contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
xvasprintf.
* common/common-utils.c (xasprintf, xvasprintf): Remove.
* common/common-utils.h (xasprintf, xvasprintf): Remove.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/common-utils.c | 16 | ||||
-rw-r--r-- | gdb/common/common-utils.h | 7 |
2 files changed, 0 insertions, 23 deletions
diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index ad01ed658d8..ef5d6385afe 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -137,22 +137,6 @@ xstrvprintf (const char *format, va_list ap) return ret; } -void -xasprintf (char **ret, const char *format, ...) -{ - va_list args; - - va_start (args, format); - (*ret) = xstrvprintf (format, args); - va_end (args); -} - -void -xvasprintf (char **ret, const char *format, va_list ap) -{ - (*ret) = xstrvprintf (format, ap); -} - int xsnprintf (char *str, size_t size, const char *format, ...) { diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 030bcc5305f..58fa3f98b5d 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -43,13 +43,6 @@ char *xstrprintf (const char *format, ...) ATTRIBUTE_PRINTF (1, 2); char *xstrvprintf (const char *format, va_list ap) ATTRIBUTE_PRINTF (1, 0); -/* Like asprintf/vasprintf but get an internal_error if the call - fails. */ -void xasprintf (char **ret, const char *format, ...) - ATTRIBUTE_PRINTF (2, 3); -void xvasprintf (char **ret, const char *format, va_list ap) - ATTRIBUTE_PRINTF (2, 0); - /* Like snprintf, but throw an error if the output buffer is too small. */ int xsnprintf (char *str, size_t size, const char *format, ...) ATTRIBUTE_PRINTF (3, 4); |