From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 6095C3858425; Fri, 13 Jan 2023 16:38:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6095C3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673627900; bh=uU4CLVlJ7IdOV6CBr3Ctx8FPeodL18JNWNY0csq85oI=; h=From:To:Subject:Date:From; b=Rl4hyxrQjXQlvdY1DN+UeIpD7s/Yr6+srZTs58K6nj+CcAt5Az4RtiyMjDGu3ukIh uiATYp7RpqX1fBSixzJIFMJ6zthid8lWqBsXfkHUmr1gJsg8P+yem+7ZZq7xVyxwqJ Xmia5o4EjOlaooug4jVBa2qMg0ZxzWIK7vMlL62g= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/infrun: add debug print in print_signal_received_reason X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: 8dd08de7e48850496321548099ef86d3275679b9 X-Git-Newrev: bb0797528bf532848ed96b439b363df543a15477 Message-Id: <20230113163820.6095C3858425@sourceware.org> Date: Fri, 13 Jan 2023 16:38:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dbb0797528bf5= 32848ed96b439b363df543a15477 commit bb0797528bf532848ed96b439b363df543a15477 Author: Andrew Burgess Date: Thu Oct 20 11:59:55 2022 +0100 gdb/infrun: add debug print in print_signal_received_reason =20 It would have helped me to see an infrun debug line being printed from print_signal_received_reason, so I'm adding one. Diff: --- gdb/infrun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/infrun.c b/gdb/infrun.c index 1a2ef2d078b..edfb5ab0a91 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -8358,6 +8358,8 @@ print_signal_received_reason (struct ui_out *uiout, e= num gdb_signal siggnal) { struct thread_info *thr =3D inferior_thread (); =20 + infrun_debug_printf ("signal =3D %s", gdb_signal_to_string (siggnal)); + annotate_signal (); =20 if (uiout->is_mi_like_p ())