Factor out after-stop event handling code from stop_all_threads
authorPedro Alves <pedro@palves.net>
Sun, 13 Dec 2020 01:35:05 +0000 (01:35 +0000)
committerPedro Alves <pedro@palves.net>
Wed, 3 Feb 2021 01:15:00 +0000 (01:15 +0000)
commitd758e62c0ecca0c26547cfe40aa1f32d6e8464b7
treea6ff84e19b8089548fee67abb16f7acd86940610
parent7e9cf1fe361dda0d6f06daeaa95eb98234f50764
Factor out after-stop event handling code from stop_all_threads

This moves the code handling an event out of wait_one to a separate
function, to be used in another context in a following patch.

gdb/ChangeLog:

* infrun.c (handle_one): New function, factored out from ...
(stop_all_threads): ... here.
gdb/ChangeLog
gdb/infrun.c