* inf-ttrace.c: Include "gdbthread.h".
authorMark Kettenis <kettenis@gnu.org>
Tue, 7 Dec 2004 19:57:21 +0000 (19:57 +0000)
committerMark Kettenis <kettenis@gnu.org>
Tue, 7 Dec 2004 19:57:21 +0000 (19:57 +0000)
commita7be7fa8ef6853dcaf3f609ee31725423a7674ef
tree9c1682431e962c04c8887935198e9e17ec3c42cc
parentcc72850f95d062076e557cba1a4a402d45f0b548
* inf-ttrace.c: Include "gdbthread.h".
(inf_ttrace_num_lwps): New variable.
(inf_ttrace_num_lwps_in_syscall): Renamed from
inf_ttrace_num_threads_in_syscall.
(inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
TTEVT_LWP_TERMINATE events.
(inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
zero.
(inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
(inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
events.
(inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
TTEVT_LWP_TERMINATE events.
(inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
(inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
* Makefile.in (inf-ttrace.o): Update dependencies.
gdb/ChangeLog
gdb/Makefile.in
gdb/inf-ttrace.c