diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
commit | 3c37485b16d873d9fd8d5d448dce60a2d890e286 (patch) | |
tree | 01b974afe0c43b13dc0a0efda5ce8f0cf4b1a6a4 /gdb/infttrace.c | |
parent | 0e52036f1f47078a9863f6a377ff11e10a81e8c4 (diff) | |
download | gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.zip gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.gz gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.bz2 |
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 4cf1faa..3229f35 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -602,7 +602,7 @@ create_thread_info (int pid, lwpid_t tid) thread_info *p; int thread_count_of_pid; - new_p = malloc (sizeof (thread_info)); + new_p = xmalloc (sizeof (thread_info)); new_p->pid = pid; new_p->tid = tid; new_p->have_signal = 0; @@ -3830,8 +3830,8 @@ kill_inferior (void) zaps the target vector. */ - paranoia = (thread_info **) malloc (thread_head.count * - sizeof (thread_info *)); + paranoia = (thread_info **) xmalloc (thread_head.count * + sizeof (thread_info *)); para_count = 0; t = thread_head.head; |