mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user