From patchwork Fri Dec 13 18:11:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1209365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515951-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="BQ/DXoai"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="UCWv1O/C"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZJrQ26tLz9sPJ for ; Sat, 14 Dec 2019 05:20:54 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=Umz83Wwr7D7yfhg2OCoRZaxeLnsaxGQDZcJnfURFBMStX64u7SwzR H9nImUZgBdtKOFXK4w976gCEn1UoVg274bc48IDOthSnQldJIXjvfuZ7iNU46LMB 3Y0QcMpEsxAiS0JMakJsoE5T6sEKZVi+HcKwD58qIxc1qob5Mmk38I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=YwA0aMLmRAP1qhsm1PiRjW3OXSA=; b=BQ/DXoaiCZRwBFLNCKzIAR1oHEXk WFXoADHSu8ve1oJptSXcYFNjp0TFGFHkRClgG4M06dAck8Q+YZp5J01c9xl0dQJB 4OZ7usmSf8x8dz7YCJs1uu605l6eD9vidJDvIBkJiOSsrxlOKd5lKWGmLCpj+tME EusAmXjXxJ73+nQ= Received: (qmail 111313 invoked by alias); 13 Dec 2019 18:13:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 103551 invoked by uid 89); 13 Dec 2019 18:12:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=imp X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Dec 2019 18:12:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576260731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oshN5oD35gAT8xAolhEjd5u+3n1BTWaMz+5xiA97buE=; b=UCWv1O/ColuU0NuxidTg+AnNsgBrjjtsBTAepSsaaf7secEuz+4h3fW9bY3MQz4p5dVlBC /LqxgqiGzgwa1/THFY+TNlX3A7JPRvKFRl9WpTZ6sccLr1x0Qe8HZufLcbyaWo9wuE13Vh 3p4sk+gENgKZ2w0ImMgy6A0Xo4U2X4M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-339-u0qG6pxFOjOdl-7kiSsEGA-1; Fri, 13 Dec 2019 13:12:10 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A0BEB800D4E for ; Fri, 13 Dec 2019 18:12:09 +0000 (UTC) Received: from t470.redhat.com (ovpn-117-164.phx2.redhat.com [10.3.117.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id 88DBE5C219; Fri, 13 Dec 2019 18:12:07 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 44/45] gdbinit.in: add break-on-saved-diagnostic Date: Fri, 13 Dec 2019 13:11:33 -0500 Message-Id: <20191213181134.1830-45-dmalcolm@redhat.com> In-Reply-To: <20191213181134.1830-1-dmalcolm@redhat.com> References: <20191213181134.1830-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes This patch adds a "break-on-saved-diagnostic" command to gdbinit.in, useful for debugging when a diagnostic is queued by the analyzer. gcc/ChangeLog: * gdbinit.in (break-on-saved-diagnostic): New command. --- gcc/gdbinit.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 42302aecfe3c..c7e4a33335f4 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -219,6 +219,16 @@ is emitted (as opposed to those warnings that are suppressed by command-line options). end +define break-on-saved-diagnostic +break diagnostic_manager::add_diagnostic +end + +document break-on-saved-diagnostic +Put a breakpoint on diagnostic_manager::add_diagnostic, called within +the analyzer whenever a diagnostic is saved for later de-duplication and +possible emission. +end + define reload-gdbhooks python import imp; imp.reload(gdbhooks) end