Rémi Bernon : winedbg: Rewrite and simplify step / continue handlers.
Module: wine Branch: master Commit: 983d02c08ee399f18f155c27521fc55a56663dc4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=983d02c08ee399f18f155c275... Author: Rémi Bernon <rbernon(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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=983d02c08ee399f18f155...
participants (1)
-
Alexandre Julliard