Message ID | 20200108090302.2425-41-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-516866-incoming=patchwork.ozlabs.org@gcc.gnu.org> 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-516866-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) 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="vxA6ZVgt"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="Ub76puO5"; 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 47t3P644mfz9sNx for <incoming@patchwork.ozlabs.org>; Wed, 8 Jan 2020 20:10:18 +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=r7XBlfVzDd24N71hznT+I3XTmrD9soMUgyqzDrw8wldeEaVx15plp ppuP4jWdEYfC7M7sRVA12Z4g/Kqs0GjHg7TvfWfEjQew9sLl6XE0OCJtlVls4xA5 1mHmlRTuDQfMw9VjHe7ArqsQcYTxTCT2U8dKurL+/ycqKj762ciAZA= 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=vT+3ejjYJe1VxrkEouz1UTy3t4E=; b=vxA6ZVgtSErYAVhTSAKogG9fvSAJ iE/IoayYVf5VxDXDFcbf8BwoKgaWV7Wrg/18TaPXvnIM4mFhDV7Ikv60hqYPOMTc 0T1u6jWtjYhGhbWV3250m3/c9IQJFs9Ddyuml843EbFXoNwVjzcVo4lYGMueBfwe TM+/ajlYwzNbdUg= Received: (qmail 73769 invoked by alias); 8 Jan 2020 09:04:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 71610 invoked by uid 89); 8 Jan 2020 09:03:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=imp X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jan 2020 09:03:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578474212; 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=mbcfat7e/e/3HCFw6Y2KMFeUlehkkNgVKfzw4qh6ypQ=; b=Ub76puO5nQtbutiw2I+7ceVI8POTIFAKy6B5Q5kGINsLvqeosp9cPwLX2sASKpMCBxg2uy l1+jvOPYoe/PsnurwIrl45rM4z6B5BH6QArpzqNHMB0tQ7eJwGeTrG04krZJ3Dzg3IuT1j Y+q2rSk6phlLi5v5m/g8c14G06PQ3/A= 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-375-abtbsbuSMQeEWgSfAJ6aIQ-1; Wed, 08 Jan 2020 04:03:30 -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 E1A53100551A for <gcc-patches@gcc.gnu.org>; Wed, 8 Jan 2020 09:03:29 +0000 (UTC) Received: from t470.redhat.com (ovpn-117-41.phx2.redhat.com [10.3.117.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8183F10013A7; Wed, 8 Jan 2020 09:03:29 +0000 (UTC) From: David Malcolm <dmalcolm@redhat.com> To: gcc-patches@gcc.gnu.org Cc: David Malcolm <dmalcolm@redhat.com> Subject: [PATCH 40/41] gdbinit.in: add break-on-saved-diagnostic Date: Wed, 8 Jan 2020 04:03:01 -0500 Message-Id: <20200108090302.2425-41-dmalcolm@redhat.com> In-Reply-To: <20200108090302.2425-1-dmalcolm@redhat.com> References: <20200108090302.2425-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes |
Series |
v5 of analyzer patch kit
|
expand
|
On Wed, 2020-01-08 at 04:03 -0500, David Malcolm wrote: > Needs review (or potentially falls under the "obvious" rule, at a > stretch). > > 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. OK jeff >
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 4a5b682451b7..c5b020c2180e 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