[PATCH 02/12] gdb/infrun: add debug print in print_signal_received_reason
Andrew Burgess
aburgess@redhat.com
Fri Jan 13 16:38:59 GMT 2023
Andrew Burgess <aburgess@redhat.com> writes:
> It would have helped me to see an infrun debug line being printed from
> print_signal_received_reason, so I'm adding one.
I've gone ahead and pushed this patch, it's only adding a single debug
line so I don't think anyone will complain.
Thanks,
Andrew
> ---
> gdb/infrun.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gdb/infrun.c b/gdb/infrun.c
> index 39840ef32c8..c28bf28a4d9 100644
> --- a/gdb/infrun.c
> +++ b/gdb/infrun.c
> @@ -8393,6 +8393,8 @@ print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
> {
> struct thread_info *thr = inferior_thread ();
>
> + infrun_debug_printf ("signal = %s", gdb_signal_to_string (siggnal));
> +
> annotate_signal ();
>
> if (uiout->is_mi_like_p ())
> --
> 2.25.4
More information about the Gdb-patches
mailing list