diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-07-06 19:06:24 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-07-06 19:06:24 +0000 |
commit | b1aeb4c5a3e17984e4333b45608293ba06ee8085 (patch) | |
tree | 29413c19ccef252a0be954dc4bd0a49a4897c399 /gdb/ChangeLog | |
parent | ee3a7b7f0d021019dd51b6c86375aaa399f63f13 (diff) | |
download | gdb-b1aeb4c5a3e17984e4333b45608293ba06ee8085.zip gdb-b1aeb4c5a3e17984e4333b45608293ba06ee8085.tar.gz gdb-b1aeb4c5a3e17984e4333b45608293ba06ee8085.tar.bz2 |
2001-06-12 Michael Snyder <msnyder@redhat.com>
* 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.
(count_events_callback, select_singlestep_lwp_callback,
select_event_lwp_callback, cancel_breakpoints_callback,
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
selected one.
(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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59ffe44..f187415 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +2001-06-12 Michael Snyder <msnyder@redhat.com> + + * 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. + (count_events_callback, select_singlestep_lwp_callback, + select_event_lwp_callback, cancel_breakpoints_callback, + 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 + selected one. + (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. + 2001-07-06 Jim Blandy <jimb@redhat.com> * gdbtypes.h (builtin_type_void_func_ptr): New builtin type. |