From patchwork Sat Nov 16 01:23:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1196036 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-513760-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="MxWnXa1f"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="aqY2PkxV"; 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 47FHfx6xPhz9s7T for ; Sat, 16 Nov 2019 12:28:41 +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 :content-type:content-transfer-encoding; q=dns; s=default; b=vNg PnU932cs/2EUHAohJALXjLqwsKumT/eJYwxWMMeukajTrzz/oSJK+vzfIKDmgD6A cILl/PACsmWGTEZhicT1+kGu5wJs5eGG8hiR8jNGwbEl5xKI078pK0t+HHMtIAFE ojjvjg8xgejig0YqLHIg7hYYH9JC4kE+s0gjRIOU= 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 :content-type:content-transfer-encoding; s=default; bh=1G9Vn8GIe UcQdrQPw4nKhFkYjPk=; b=MxWnXa1flhCqyUkdRVptcBqdQrYr7nBbT7rafUkKV rSUUxflGa6rC5ptkK2fkgjLkVvN7zrKDiyDfLzjVb2p5mG2260NGWWMKn8lbsMbT Jb8DJ2mv+S7zH/ncFD+2C7A8xemPPRK/+RhxEwNlQrXFlsK+XgnFUXGwkFs2aawn 3k= Received: (qmail 82625 invoked by alias); 16 Nov 2019 01:21:32 -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 63192 invoked by uid 89); 16 Nov 2019 01:18:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.4 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, deduplication, HX-Languages-Length:931 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; Sat, 16 Nov 2019 01:18:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573867088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PrSYHkry7JKCYBKplH1ecw1vAx3gNjMSQFJr2J2zS20=; b=aqY2PkxVSijP9K8P8s/u/2/9rgm9lHOfOQ/7jHZtGCSLU8udtLWIWdUfMotewBW5TsOlb5 +f4GtZjMmjsraPtgbjfx0R+wUIhdEPVrZzWI6RLrbb6oAUIO4i+fI1BlbXjGPRbteroMZZ 3ZxAONcLu/1PtpH7vO9NFkmG1ZEqqNQ= 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-179-lo4VBoOjOOawgk2Mdrwudg-1; Fri, 15 Nov 2019 20:18:07 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1269B1005500 for ; Sat, 16 Nov 2019 01:18:06 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-32.phx2.redhat.com [10.3.112.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2584B10246FB; Sat, 16 Nov 2019 01:18:04 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 48/49] gdbinit.in: add break-on-saved-diagnostic Date: Fri, 15 Nov 2019 20:23:35 -0500 Message-Id: <1573867416-55618-49-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1573867416-55618-1-git-send-email-dmalcolm@redhat.com> References: <1573867416-55618-1-git-send-email-dmalcolm@redhat.com> 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 42302ae..c7e4a33 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