This is the mail archive of the
mailing list for the GDB project.
src/gdb ChangeLog lin-lwp.c
- To: gdb-cvs at sourceware dot cygnus dot com
- Subject: src/gdb ChangeLog lin-lwp.c
- From: msnyder at sourceware dot cygnus dot com
- Date: 6 Jul 2001 19:06:25 -0000
Module name: src
Changes by: email@example.com 2001-07-06 12:06:25
gdb : ChangeLog lin-lwp.c
2001-06-12 Michael Snyder <firstname.lastname@example.org>
* lin-lwp.c: Prevent thread starvation by using a monte carlo
method to choose which of several event threads to handle next.
(stop_wait_callback): Defer pushback of breakpoint events until
later; add SIGTRAP events to the queue of unhandled events.
Keep calling waitpid until SIGSTOP retrieved. If more than one
non-SIGSTOP event is retrieved, push them back onto the process
queue using kill.
select_event_lwp): New functions. Implement monte carlo method
for selecting which of several SIGTRAP threads to handle next.
Push back the breakpoint event for all threads other than the
(lin_lwp_wait): Call select_event_lwp to decide which of several
sigtrapped lwps to handle next.
(resume_callback): Disable code that attempts to handle
step_resume breakpoints. Let core gdb handle this.