From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 451413858004 for ; Fri, 13 Jan 2023 16:39:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 451413858004 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673627948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UgPGmwdJPiylnxnlYvLFtxL0QfyyhT+Dv9ruPtuqjVk=; b=cpvUNh3CpLjQby5+AJNF3nXOYKdol3gKjNLHcykYVglHRptnVytgyFy0fCwSiiK+ks3yOW J7AyuDIOd+aJ4Ls9CRtrE0kCl4CL8nUVydyxc/2TuHCirbmp1I59iTDcqLMduUHE7Jican uXVYBuF6fpRuXw1N1ZS0VyGJYlEOVcM= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-532-xq3rBApYOhKOccmUCnR8Lg-1; Fri, 13 Jan 2023 11:39:01 -0500 X-MC-Unique: xq3rBApYOhKOccmUCnR8Lg-1 Received: by mail-wr1-f70.google.com with SMTP id r10-20020adfa14a000000b0025ba73dff40so4321700wrr.12 for ; Fri, 13 Jan 2023 08:39:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UgPGmwdJPiylnxnlYvLFtxL0QfyyhT+Dv9ruPtuqjVk=; b=fQ2rRUGN700VB44MKafLlg3XvMbbCr8QXRPCeNXGmsDJbAzbgL9UpxTXwMRr8OOtJg E5f+G3c1Tpr+pKYWZsk+ixZEA5jnb5/yPSZXFdPWTjL8GDfzdSWzTs57bG82Osc97UDm 4bfzoqvb28wc5p+qSu//TIvavKYIwALNv+X8syEiCupI3pSv17KmwYiANnNJnYZVde07 Zhih61cDQK2I0y2UHQqZnfSw1zJQHHew2T4PTNM6DRWGs3u2xh5O4D9A7corMr6Zb9NJ VHyuO9icXlLdjl7jSH3LTVg/nRpoS8FVs9M37gREaRwWoCixL2glxfXcBABWTI1+keB8 xQLQ== X-Gm-Message-State: AFqh2kpXcweF3CsJf+tzFwEqYxmEE32pnfaUK7w9X1CPiUxGsKNlTY7i Dss1jVTPFQbJzhNaoxF6FGUwq+qk99uI6aH6HW1aG2VJiBn+TTEME9l+NaSeRr3t3L8CERLHwH2 uFpkVIDd5foQPmHN6bo/h67JCiGw0Vc+2GDkRAKECWVE4RYJ2L5P5VlZkecHf8j4Rr/+XfY0K6w == X-Received: by 2002:a05:600c:3552:b0:3d9:f801:bb6 with SMTP id i18-20020a05600c355200b003d9f8010bb6mr11902631wmq.10.1673627940352; Fri, 13 Jan 2023 08:39:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXuKstKKaxWqJGVtSrp4AvjfbrwF5qITpQOU6KEkpDPg44cTewLYWtuotUpiOR4grW6kNH5wRg== X-Received: by 2002:a05:600c:3552:b0:3d9:f801:bb6 with SMTP id i18-20020a05600c355200b003d9f8010bb6mr11902618wmq.10.1673627940130; Fri, 13 Jan 2023 08:39:00 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id q1-20020a1ce901000000b003b3307fb98fsm24584627wmc.24.2023.01.13.08.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:38:59 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: Re: [PATCH 02/12] gdb/infrun: add debug print in print_signal_received_reason In-Reply-To: <8b853ddc70117ba5a6a357c2833070a6c3f160d2.1666341010.git.aburgess@redhat.com> References: <8b853ddc70117ba5a6a357c2833070a6c3f160d2.1666341010.git.aburgess@redhat.com> Date: Fri, 13 Jan 2023 16:38:59 +0000 Message-ID: <87tu0ufkyk.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Andrew Burgess 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