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/nto-low.c | |
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/nto-low.c')
-rw-r--r-- | gdb/gdbserver/nto-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 0c54b90..e094e28 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -174,7 +174,7 @@ do_attach (pid_t pid) close (nto_inferior.ctl_fd); init_nto_inferior (&nto_inferior); } - snprintf (nto_inferior.nto_procfs_path, PATH_MAX - 1, "/proc/%d/as", pid); + xsnprintf (nto_inferior.nto_procfs_path, PATH_MAX - 1, "/proc/%d/as", pid); nto_inferior.ctl_fd = open (nto_inferior.nto_procfs_path, O_RDWR); if (nto_inferior.ctl_fd == -1) { |