* utils.c (xmalloc,xcalloc,xstrdup): New fns.
authorDoug Evans <dje@google.com>
Sun, 14 Dec 2008 20:51:04 +0000 (20:51 +0000)
committerDoug Evans <dje@google.com>
Sun, 14 Dec 2008 20:51:04 +0000 (20:51 +0000)
commitbca929d3a66489b6b2aff2a9a81bc17853dff79e
tree01fb0fc214848cab8a2629b58956f92238f7edf5
parent023eb17ca2bc152be687b0b5676bdb6fda6cd9d1
* utils.c (xmalloc,xcalloc,xstrdup): New fns.
* server.h (ATTR_MALLOC): New macro.
(xmalloc,xcalloc,xstrdup): Declare.
* hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
* inferiors.c: Ditto.
* linux-low.c: Ditto.
* mem-break.c: Ditto.
* regcache.c: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* target.c: Ditto.
* win32-low.c: Ditto.
12 files changed:
gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio.c
gdb/gdbserver/inferiors.c
gdb/gdbserver/linux-low.c
gdb/gdbserver/mem-break.c
gdb/gdbserver/regcache.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/target.c
gdb/gdbserver/utils.c
gdb/gdbserver/win32-low.c