aboutsummaryrefslogtreecommitdiff
path: root/gdb/lin-thread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-20 00:54:43 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-20 00:54:43 +0000
commit0e52036f1f47078a9863f6a377ff11e10a81e8c4 (patch)
tree843cc4d980261981f8a7053bd2d3a9c87c085ac6 /gdb/lin-thread.c
parent81b8eb809e1fd6ad16bbeda4a365b8e7a81a441c (diff)
downloadgdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.zip
gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.gz
gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.bz2
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
Diffstat (limited to 'gdb/lin-thread.c')
-rw-r--r--gdb/lin-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/lin-thread.c b/gdb/lin-thread.c
index 8c4caff..8c303fd 100644
--- a/gdb/lin-thread.c
+++ b/gdb/lin-thread.c
@@ -780,8 +780,8 @@ insert_thread (int tid, int lid, td_thr_state_e state, td_thr_type_e type)
if (threadlist_top >= threadlist_max)
{
threadlist_max += THREADLIST_ALLOC;
- threadlist = realloc (threadlist,
- threadlist_max * sizeof (threadinfo));
+ threadlist = xrealloc (threadlist,
+ threadlist_max * sizeof (threadinfo));
if (threadlist == NULL)
return NULL;
}