summaryrefslogtreecommitdiff
path: root/gdb/lin-lwp.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings resulting from fact that GET_LWP() now returns a long ratherKevin Buettner2001-05-151-5/+5
| | | | than an int.
* Redefine ptid_t to be a struct rather than an int.Kevin Buettner2001-05-151-12/+4
|
* Revert a couple of small changes that inadvertently came in via theKevin Buettner2001-05-101-2/+2
| | | | 2001-05-03 patch.
* Minor ptid_t changes for the upcoming phase 3 ptid patch.Kevin Buettner2001-05-101-2/+2
|
* Consolidate save_inferior_ptid/restore_inferior_ptid implementation toKevin Buettner2001-05-061-22/+1
| | | | one source file.
* Implement attach/detach for multi-threaded programs on Linux.Mark Kettenis2001-05-061-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.
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-104/+116
|
* 2001-05-01 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-05-011-14/+23
| | | | * lin-lwp.c: Change printf to fprintf_unfiltered.
* 2001-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-04-301-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-30 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-04-301-28/+33
| | | | | * thread-db.c: Revert 2001-04-26 change for debugging output. * lin-lwp.c: Ditto.
* 2001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-04-261-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-26 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-04-261-6/+6
| | | | * lin-lwp.c: Minor cleanups in comments.
* 2001-04-06 David Smith <dsmith@redhat.com>David Smith2001-04-061-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.
* * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped untilMark Kettenis2001-03-301-4/+4
| | | | we're absolutely sure we're going to resume it.
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-1/+2
|
* * lin-lwp.c (lin_lwp_xfer_memory): Add attrib argument.J.T. Conklin2001-01-241-1/+2
| | | | * thread-db.c (thread_db_xfer_memory): Likewise.
* Replace free() with xfree().Kevin Buettner2000-12-151-3/+3
|
* * lin-lwp.c (stop_wait_callback): Remove bogus assertions in theMark Kettenis2000-09-181-8/+13
| | | | | code that deals with exiting/signalled threads. Replace with code similar to what's done in lin_lwp_wait.
* * lin-lwp.c (normal_mask, blocked_mask): New variables.Mark Kettenis2000-09-091-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.
* * config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,Mark Kettenis2000-09-031-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.