aboutsummaryrefslogtreecommitdiff
path: root/gdb/lin-thread.c
diff options
context:
space:
mode:
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;
}