aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread-db.c
AgeCommit message (Collapse)AuthorFilesLines
2002-02-24* lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''Andrew Cagney1-2/+3
with either ``GNU/Linux'' or ``Linux kernel''. Fix PR gdb/378.
2002-01-082002-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder1-3/+3
* thread-db.c (thread_db_new_objfile): Indendation fix.
2002-01-052002-01-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+3
* thread-db.c (thread_db_new_objfile): Do not enable thread_db for core files.
2001-10-13* thread-db.c: Fix a few formatting mistakes.Mark Kettenis1-25/+19
2001-07-11* thread-db.c (enable_thread_event_reporting): Correct warningMark Kettenis1-1/+1
message about getting thread death breakpoint. Reported by John S Kallal <jskallal@home.com>.
2001-07-032001-07-03 Michael Snyder <msnyder@redhat.com>Michael Snyder1-3/+3
* thread_db (find_new_threads_callback, thread_db_thread_alive, attach_thread): Update comments.
2001-07-032001-06-29 Ken Whaley <ken@believe.com>Michael Snyder1-3/+7
* thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition to TD_THR_UNKNOWN when looking for defunct zombie threads. (thread_db_thread_alive): Ditto. (find_new_threads_callback): Ditto.
2001-05-232001-05-22 Michael Snyder <msnyder@redhat.com>Michael Snyder1-3/+17
* thread-db.c: Allow for defunct zombie threads. (attach_thread): Do not attempt to attach zombie thread. (thread_db_thread_alive): Return false for defunct zombie thread. (find_new_threads_callback): Don't add defunct zombie thread to list.
2001-05-15Redefine ptid_t to be a struct rather than an int.Kevin Buettner1-14/+7
2001-05-06Consolidate save_inferior_ptid/restore_inferior_ptid implementation toKevin Buettner1-21/+0
one source file.
2001-05-06Implement attach/detach for multi-threaded programs on Linux.Mark Kettenis1-23/+50
* thread-db.c (keep_thread_db): Adjust comment. (deactivate_target): Removed. (thread_db_new_objfile): Don't call deactivate_target. Implement guts of deactivate_target inline instead. (attach_thread): Call ATTACH_LWP unconditionally if defined. (thread_db_attach): New function. (thread_db_detach): Don't call deactivate_target. Do necessary cleanup inline instead. Set inferior_ptid to LWP corresponding to the current user-level thread. (thread_db_kill): Set inferior_ptid to LWP corresponding to the current user-level thread. (thread_db_create_inferior): Deactivate target vector if KEEP_THREAD_DB is zero. (thread_db_mourn_inferior): Don't call deactivate_target. Do necessary cleanup inline instead. (init_thread_db_ops): Initialize to_attach field to thread_db_attach. * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype. (stop_wait_callback): Add prototype. (init_lwp_list): Add comment about when to re-initialize the LWP list. (lin_lwp_attach_lwp): Only call ptrace for cloned processes. Avoid adding publicates to the LWP list. Only mark an LWP as signalled if it doesn't correspond to a cloned process. (lin_lwp_attach): Add initial process to the LWP list. Make sure it's stopped and fake a SIGSTOP. (detach_callback): New function. (lin_lwp_detach): Implement. (lin_lwp_create_inferior): Don't re-initialize LWP list here. Call child_ops.to_create_inferior directly instead of via target_beneath local. (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior directly instead of via target_beneath local.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-92/+93
2001-04-302001-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder1-17/+9
* thread-db.c: Revert 2001-04-26 change for debugging output. * lin-lwp.c: Ditto.
2001-04-262001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder1-9/+17
* thread-db.c (_initialize_thread_db): Add set/show command "debug-linux-threads" for debugging output. * lin-lwp.c (various): Use global "debug_linux_threads to turn on extra debugging output.
2001-04-172001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder1-2/+2
* thread-db.c (check_thread_signals): When looping over all signals, ignore signal zero. (disable_thread_signals): Ditto.
2001-03-30* thread-db.c (check_event): Don't report an error if we encounterMark Kettenis1-4/+5
a thread creation event for a thread that's already in the thread list, since that may legitemately happen. Instead only call attach_thread if it's not already in the thread list.
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-1/+2
2001-01-24* lin-lwp.c (lin_lwp_xfer_memory): Add attrib argument.J.T. Conklin1-1/+2
* thread-db.c (thread_db_xfer_memory): Likewise.
2000-12-27Fix debugging programs statically linked against the thread library.Mark Kettenis1-46/+80
* thread-db.c: Various comment fixes and additions. Include "bfd.h", "symfile.h" and "objfiles.h". (keep_thread_db): New variable. (find_new_threads_callback): Remove prototype. (thread_db_find_new_threads): New prototype. (thread_db_push_target, thread_db_unpush_target): Remove functions. (deactivate_target): New function. (thread_db_new_objfile): If OBJFILE == NULL, force deactivation of target vector. Activate target vector directly instead of calling thread_db_push_target. Set keep_thread_db if thread library is detected in the main symbol file. Only enable thread event reporting if there actually is a child process. Likewise for detecting new threads, done by calling thread_db_find_new_threads instead of iterating over the threads ourselves. (thread_db_detach): Call deactivate_target instead of thread_db_unpush_target. (thread_db_wait): Bail out early if we're not debugging the multi-threaded child process yet. (thread_db_post_startup_inferior): New function. (thread_db_mourn_inferior): Call deactivate_target instead of thread_db_unpush_target. (init_thread_db_ops): Add thread_db_post_startup_inferior to thread_db_ops.
2000-12-15Replace free() with xfree().Kevin Buettner1-1/+1
2000-09-03* config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,Mark Kettenis1-0/+992
GET_THREAD_SIGNALS): New defines. * config/i386/linux.mh (NATDEPFILES): Remove lin-thread.o and linux-threads.o. Add proc-service.o, thread-db.o and lin-lwp.o. * proc-service.c: New file. * thread-db.c: New file. * lin-lwp.c: New file.