summaryrefslogtreecommitdiff
path: root/gdb/infttrace.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
commit211496566bf99ace06427acd2fccc3aa85d4d19c (patch)
tree49686c11f98c87c34da0f10b077e0275c0ec1a0c /gdb/infttrace.c
parent365f67c1fd2c8d32730c6715e0034372402e7e2e (diff)
downloadgdb-211496566bf99ace06427acd2fccc3aa85d4d19c.tar.gz
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r--gdb/infttrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c
index 4cf1faa888f..3229f358a4d 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;