diff options
author | Doug Evans <dje@google.com> | 2008-12-14 20:51:04 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-12-14 20:51:04 +0000 |
commit | bca929d3a66489b6b2aff2a9a81bc17853dff79e (patch) | |
tree | 01fb0fc214848cab8a2629b58956f92238f7edf5 /gdb/gdbserver/win32-low.c | |
parent | 023eb17ca2bc152be687b0b5676bdb6fda6cd9d1 (diff) | |
download | gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.zip gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.tar.gz gdb-bca929d3a66489b6b2aff2a9a81bc17853dff79e.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/win32-low.c')
-rw-r--r-- | gdb/gdbserver/win32-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index acc6341..8704142 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -176,7 +176,7 @@ child_add_thread (DWORD tid, HANDLE h) if ((th = thread_rec (tid, FALSE))) return th; - th = calloc (1, sizeof (*th)); + th = xcalloc (1, sizeof (*th)); th->tid = tid; th->h = h; |