Rémi Bernon : winedbg: Rewrite and simplify step / continue handlers.

Alexandre Julliard julliard at winehq.org
Wed Apr 1 15:51:00 CDT 2020


Module: wine
Branch: master
Commit: 983d02c08ee399f18f155c27521fc55a56663dc4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=983d02c08ee399f18f155c27521fc55a56663dc4

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Apr  1 17:03:27 2020 +0200

winedbg: Rewrite and simplify step / continue handlers.

The vCont handler used some overcomplicated logic, we only need to
iterate over the actions and apply them on the matching threads that
didn't match yet.

Thanks to DBG_REPLY_LATER we can now continue/step any thread regardless
of whether it is the one that raised the debug event. Just suspend all
active threads after debug event is raised and resume them one by one,
according to the gdb request. If the thread that raised the debug event
should not be resumed, reply with DBG_REPLY_LATER.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/debugger.h |   1 +
 programs/winedbg/gdbproxy.c | 289 ++++++++++++--------------------------------
 programs/winedbg/winedbg.c  |   1 +
 3 files changed, 80 insertions(+), 211 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=983d02c08ee399f18f155c27521fc55a56663dc4



More information about the wine-cvs mailing list