diff options
author | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 01:53:43 +0000 |
---|---|---|
committer | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 01:53:43 +0000 |
commit | 6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e (patch) | |
tree | 94bcdb617fd5dc4078b5a0fa92cad8c45e048a9e /gdb/gdbserver/server.h | |
parent | a1723c35ac1fdb9cd0f250546c914122ad39f8c3 (diff) | |
download | gdb-6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e.zip gdb-6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e.tar.gz gdb-6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e.tar.bz2 |
use xsnprintf instead of snprintf.
snprintf is not available on LynxOS, so I changed the calls to snprintf
to calls to xsnprintf, which should be strictly equivalent.
gdb/gdbserver/ChangeLog:
* utils.c (xsnprintf): Make non-static.
* server.h: Add xsnprintf declaration.
* linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
replace calls to snprintf by calls to xsnprintf throughout.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r-- | gdb/gdbserver/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index b401960..286c80a 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -473,6 +473,8 @@ void *xmalloc (size_t) ATTR_MALLOC; void *xrealloc (void *, size_t); void *xcalloc (size_t, size_t) ATTR_MALLOC; char *xstrdup (const char *) ATTR_MALLOC; +int xsnprintf (char *str, size_t size, const char *format, ...) + ATTR_FORMAT (printf, 3, 4);; void freeargv (char **argv); void perror_with_name (const char *string); void error (const char *string,...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2); |