mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
1999-11-08 Ulrich Drepper <drepper@cygnus.com> * pthread.c (__pthread_initialize_manager): Initialize __pthread_manager_thread.p_tid.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-11-08 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* pthread.c (__pthread_initialize_manager): Initialize
|
||||||
|
__pthread_manager_thread.p_tid.
|
||||||
|
|
||||||
1999-11-02 Ulrich Drepper <drepper@cygnus.com>
|
1999-11-02 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* internals.h: Declare __pthread_last_event.
|
* internals.h: Declare __pthread_last_event.
|
||||||
|
@ -398,6 +398,7 @@ int __pthread_initialize_manager(void)
|
|||||||
}
|
}
|
||||||
__pthread_manager_request = manager_pipe[1]; /* writing end */
|
__pthread_manager_request = manager_pipe[1]; /* writing end */
|
||||||
__pthread_manager_reader = manager_pipe[0]; /* reading end */
|
__pthread_manager_reader = manager_pipe[0]; /* reading end */
|
||||||
|
__pthread_manager_thread.p_tid = 2* PTHREAD_THREADS_MAX + 1;
|
||||||
__pthread_manager_thread.p_pid = pid;
|
__pthread_manager_thread.p_pid = pid;
|
||||||
/* Make gdb aware of new thread manager */
|
/* Make gdb aware of new thread manager */
|
||||||
if (__pthread_threads_debug && __pthread_sig_debug > 0)
|
if (__pthread_threads_debug && __pthread_sig_debug > 0)
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* td_thr_get_info.c: Make sure ti_lid is never zero.
|
||||||
|
|
||||||
|
* proc_service.h: Add ps_getpid prototype.
|
||||||
|
|
||||||
1999-11-03 Ulrich Drepper <drepper@cygnus.com>
|
1999-11-03 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* thread_dbP.h (ta_ok): New function.
|
* thread_dbP.h (ta_ok): New function.
|
||||||
|
@ -59,3 +59,5 @@ extern ps_err_e ps_lgetfpregs(struct ps_prochandle *,
|
|||||||
lwpid_t, prfpregset_t *);
|
lwpid_t, prfpregset_t *);
|
||||||
extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
|
extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
|
||||||
lwpid_t, const prfpregset_t *);
|
lwpid_t, const prfpregset_t *);
|
||||||
|
|
||||||
|
extern pid_t ps_getpid (struct ps_prochandle *);
|
||||||
|
@ -64,7 +64,7 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Initialization which are the same in both cases. */
|
/* Initialization which are the same in both cases. */
|
||||||
infop->ti_lid = pds.p_pid;
|
infop->ti_lid = pds.p_pid ?: ps_getpid (th->th_ta_p->ph);
|
||||||
infop->ti_ta_p = th->th_ta_p;
|
infop->ti_ta_p = th->th_ta_p;
|
||||||
infop->ti_startfunc = pds.p_start_args.start_routine;
|
infop->ti_startfunc = pds.p_start_args.start_routine;
|
||||||
memcpy (&infop->ti_events, &pds.p_eventbuf.eventmask,
|
memcpy (&infop->ti_events, &pds.p_eventbuf.eventmask,
|
||||||
|
Reference in New Issue
Block a user