From 6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e Mon Sep 17 00:00:00 2001 From: gdbadmin Date: Wed, 1 Sep 2010 01:53:43 +0000 Subject: 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. --- gdb/gdbserver/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/gdbserver/server.h') 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); -- cgit v1.1