diff options
author | Antoine Tremblay <antoine.tremblay@ericsson.com> | 2016-08-31 13:46:22 -0400 |
---|---|---|
committer | Antoine Tremblay <antoine.tremblay@ericsson.com> | 2016-08-31 13:46:22 -0400 |
commit | 3aa5cfa0d1cdbbd839884302535da28ca8c8b00d (patch) | |
tree | ede1cd2e8206a76c94b6c4b75150954c4e7e58bf /gdb/gdbserver/ChangeLog | |
parent | f99bd5f2c1e6b545a0a6cfb3b13f79deea84098e (diff) | |
download | gdb-3aa5cfa0d1cdbbd839884302535da28ca8c8b00d.zip gdb-3aa5cfa0d1cdbbd839884302535da28ca8c8b00d.tar.gz gdb-3aa5cfa0d1cdbbd839884302535da28ca8c8b00d.tar.bz2 |
Fix lwp_suspend/unsuspend imbalance in linux_wait_1
This patch fixes imbalanced lwp_suspend/unsuspend calls caused by the
premature choosing of another event for fairness.
select_event_lwp would switch the event before a call to
unsuspend_all_lwps, thus it would be called with the wrong event.
This caused an assertion failure: unsuspend LWP xx, suspended=-1 when
testing gdb.threads/non-stop-fair-events.exp with ARM range stepping in
GDBServer.
This patch moves the switch of event after the unsuspend/unstop calls.
No regressions, tested on ubuntu 14.04 ARMv7 and x86.
With gdbserver-native.
gdb/gdbserver/ChangeLog:
* linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index af0140f..4dc2e45 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com> + + * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps. + 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org> PR server/20491 |