From: Simon Marchi Date: Thu, 2 Jul 2020 20:33:11 +0000 (-0400) Subject: gdb: add logging in fetch_inferior_event to see the result of do_target_wait X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=0e34289208d7a1486cb4b63eff8be79dc63280a0;p=deliverable%2Fbinutils-gdb.git gdb: add logging in fetch_inferior_event to see the result of do_target_wait Change-Id: I3a7c3d34d5e13345ce281de052893efefa349892 --- diff --git a/gdb/infrun.c b/gdb/infrun.c index 159a13b3a2..ad7ff7f1a8 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3890,7 +3890,12 @@ fetch_inferior_event () target_execution_direction ()); if (!do_target_wait (minus_one_ptid, ecs, TARGET_WNOHANG)) - return; + { + infrun_log_debug ("do_target_wait returned false"); + return; + } + + infrun_log_debug ("do_target_wait returned true"); gdb_assert (ecs->ws.kind != TARGET_WAITKIND_IGNORE);