From f6367df2fd032db89e68e28333d995fb18ffa653 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 15 Oct 1999 00:38:31 +0000 Subject: Update. 1999-10-14 Ulrich Drepper * manager.c (pthread_handle_create): Remove p_startfct initialization. * internals.h (_pthread_descr_struct): We don't need p_startfct field. --- linuxthreads_db/td_thr_get_info.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'linuxthreads_db/td_thr_get_info.c') diff --git a/linuxthreads_db/td_thr_get_info.c b/linuxthreads_db/td_thr_get_info.c index 973323e1d6..606ca81f78 100644 --- a/linuxthreads_db/td_thr_get_info.c +++ b/linuxthreads_db/td_thr_get_info.c @@ -43,29 +43,29 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop) descriptor in older versions is not fully initialized. */ if (pds.p_nr == 1) { - infop->ti_ta_p = th->th_ta_p; infop->ti_tid = th->th_ta_p->pthread_threads_max * 2 + 1; - infop->ti_lid = pds.p_pid; infop->ti_type = TD_THR_SYSTEM; infop->ti_state = TD_THR_RUN; } else { - infop->ti_ta_p = th->th_ta_p; infop->ti_tid = pds.p_tid; - infop->ti_lid = pds.p_pid; infop->ti_tls = (char *) pds.p_specific; infop->ti_pri = pds.p_priority; infop->ti_type = TD_THR_USER; if (pds.p_exited) + /* This should not happen. */ infop->ti_state = TD_THR_ZOMBIE; else /* XXX For now there is no way to get more information. */ infop->ti_state = TD_THR_RUN; - - infop->ti_startfunc = pds.p_start_args.start_routine; } + /* Initialization which are the same in both cases. */ + infop->ti_lid = pds.p_pid; + infop->ti_ta_p = th->th_ta_p; + infop->ti_startfunc = pds.p_start_args.start_routine; + return TD_OK; } -- cgit v1.2.3