aboutsummaryrefslogtreecommitdiff
path: root/gdb/lin-lwp.c
AgeCommit message (Collapse)AuthorFilesLines
2001-05-10Revert a couple of small changes that inadvertently came in via theKevin Buettner1-2/+2
2001-05-03 patch.
2001-05-10Minor ptid_t changes for the upcoming phase 3 ptid patch.Kevin Buettner1-2/+2
2001-05-06Consolidate save_inferior_ptid/restore_inferior_ptid implementation toKevin Buettner1-22/+1
one source file.
2001-05-06Implement attach/detach for multi-threaded programs on Linux.Mark Kettenis1-27/+85
* 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-104/+116
2001-05-012001-05-01 Michael Snyder <msnyder@redhat.com>Michael Snyder1-14/+23
* lin-lwp.c: Change printf to fprintf_unfiltered.
2001-04-302001-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder1-33/+39
* thread-db.c: Revert 2001-04-26 change for debugging output. * lin-lwp.c: Ditto. * lin-lwp.c: Add set/show debug lin-lwp command. Use this command to turn extra debugging output on / off.
2001-04-302001-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder1-28/+33
* 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-33/+28
* 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-262001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder1-6/+6
* lin-lwp.c: Minor cleanups in comments.
2001-04-062001-04-06 David Smith <dsmith@redhat.com>David Smith1-1/+5
* arch-utils.c (default_prepare_to_proceed) (generic_prepare_to_proceed): Added new functions. * arch-utils.h: New function declarations for default_prepare_to_proceed() and generic_prepare_to_proceed(). * gdbarch.sh: Added PREPARE_TO_PROCEED. * gdbarch.c: Regenerated. * gdbarch.h: Regenerated. * inferior.h: Added get_last_target_status() declaration. * infrun.c (get_last_target_status): Added new function. (handle_inferior_event): Saves last pid and waitstatus, which will get returned by get_last_target_status(). * hppa-tdep.c (prepare_to_proceed): Added comment stating that prepare_to_proceed() is potentially redundant since default_prepare_to_proceed() has been added. * linux-thread.c (prepare_to_proceed): Ditto. * lin-lwp.c (prepare_to_proceed): Ditto. * m3-nat.c (prepare_to_proceed): Ditto.
2001-03-30* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped untilMark Kettenis1-4/+4
we're absolutely sure we're going to resume it.
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-15Replace free() with xfree().Kevin Buettner1-3/+3
2000-09-18* lin-lwp.c (stop_wait_callback): Remove bogus assertions in theMark Kettenis1-8/+13
code that deals with exiting/signalled threads. Replace with code similar to what's done in lin_lwp_wait.
2000-09-09* lin-lwp.c (normal_mask, blocked_mask): New variables.Mark Kettenis1-14/+62
(lin_lwp_wait): Block SIGCHLD here if it isn't already blocked. (lin_lwp_mourn_inferior): Restore the origional signal mask, and reset the mask of blocked signals. (_initialize_lin_lwp): Don't block SIGCHLD here, but do initialize suspend_mask and blocked_mask. This makes us pass gdb.base/sigall.exp for Linux/x86 now. (lin_thread_get_thread_signals): Treat the LinuxThreads "cancel" signal similarly to SIGCHLD in the generic code. Avoids GDB being terminated by a Real-time signal.
2000-09-03* config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,Mark Kettenis1-0/+1048
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.