From patchwork Fri Aug 29 19:48:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 384358 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 81531140111 for ; Sat, 30 Aug 2014 05:52:32 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:date:content-type:mime-version; q= dns; s=default; b=rMvG/5G0hvP6eT++jiLmunJxG5Qbr7dRxw/YRC14qELGTv bLef5mhAU1qYfR1XloGG4vb6PnjP8wh0yIxsLMCQKfnHQdi2w33OLPVK27ABd0kO LcpGaCBhlmmvs85KxMh61c3CO32rt8rQP1P/iKr3HLRH9+XJVFDwM7pmcIqx0= 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 :message-id:subject:from:to:date:content-type:mime-version; s= default; bh=A+SOTdVzIpwMtg//PMYS/JICaTE=; b=OM/weDN14nQQL43bwc+S s0isyBmLeFnGYY/n2XrCFE4bitdv8wewTa+HrZgXZCQurzvnrO4iTE8hi9vSkcuX KZ/z0x+qsdVr1oXnaDoAQLrGMEoaUWcQYLe/KD1bjMS7weeQQy4odPj8++pbp0BW WCg6aTkG1cVhOyCOCwoGYW8= Received: (qmail 11159 invoked by alias); 29 Aug 2014 19:52:24 -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 11143 invoked by uid 89); 29 Aug 2014 19:52:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 29 Aug 2014 19:52:21 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7TJqJgn032766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 29 Aug 2014 15:52:20 -0400 Received: from [10.3.227.38] (vpn-227-38.phx2.redhat.com [10.3.227.38]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7TJqJUa003442 for ; Fri, 29 Aug 2014 15:52:19 -0400 Message-ID: <1409341739.31600.43.camel@surprise> Subject: [PATCH rtl, gdbinit.in]: Skip various inline functions in rtl.h when stepping in gdb From: David Malcolm To: "gcc-patches@gcc.gnu.org" Date: Fri, 29 Aug 2014 15:48:59 -0400 Mime-Version: 1.0 X-IsSubscribed: yes In my rtx-classes patches I converted a number of macros in rtl.h into inline functions, many of them trivial and frequently called. The attached patch adds "skip" commands for them to gdbinit.in, so that gdb skips them when single-stepping (assuming that you've set up ~/.gdbinit with an add-auto-load-safe-path of the working copy). I posted a version of this before as: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg00743.html which used a single: skip file rtl.h but I notice there are some non-trivial inline functions in rtl.h so this new version does it per-function instead. Tested manually within gdb (gdb-7.6.50.20130731-19.fc20.x86_64) stepping through final. OK for trunk? gcc/ * gdbinit.in: Skip various inline functions in rtl.h when stepping. commit dbcda52e0a92723a844e177fbc40ceac8dae739b Author: David Malcolm Date: Wed Aug 6 15:58:20 2014 -0400 gdbinit.in: Skip various inline functions in rtl.h when stepping See https://sourceware.org/gdb/current/onlinedocs/gdb/Skipping-Over-Functions-and-Files.html gcc/ * gdbinit.in: Skip various inline functions in rtl.h when stepping. diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 25c530a..2324688 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -234,4 +234,24 @@ set check type off # These are used in accessor macros. # Note that this is added at the end because older gdb versions # do not understand the 'skip' command. +# See https://sourceware.org/gdb/current/onlinedocs/gdb/Skipping-Over-Functions-and-Files.html skip file tree.h + +# Likewise, skip various inline functions in rtl.h. +skip rtx_expr_list::next +skip rtx_expr_list::element +skip rtx_insn_list::next +skip rtx_insn_list::insn +skip rtx_sequence::len +skip rtx_sequence::element +skip rtx_sequence::insn +skip INSN_UID +skip PREV_INSN +skip SET_PREV_INSN +skip NEXT_INSN +skip SET_NEXT_INSN +skip BLOCK_FOR_INSN +skip PATTERN +skip INSN_LOCATION +skip INSN_HAS_LOCATION +skip JUMP_LABEL_AS_INSN