From patchwork Thu Nov 14 12:35:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Kharlamov X-Patchwork-Id: 1194807 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-513378-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Ybbkak4e"; dkim=pass (1024-bit key; unprotected) header.d=yandex.ru header.i=@yandex.ru header.b="kF/zBEkF"; 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 47DLZ71Wp9z9sNT for ; Thu, 14 Nov 2019 23:36:14 +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:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; q=dns; s=default; b=Cn1YEeVjqZeQD98/ JpG9SE4KQnbycdacNHu+ZAeMXPhoZKSIuNZODWQnqPNG/CP7HPJyAwgN6QuBNqqs Q0MXl8VKZd91zMkr3kC92SKlaDHpNq55i3ZB78IRPx3J4Hl6cN+0oiQYZVGZit20 FMcvhSiwjc34jaf0isUVlTKt60E= 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:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=default; bh=JKg2zTqehogL+78wA9Iyz5 5QA3g=; b=Ybbkak4e2a+8jlGgFqI6PhtadOJLpTWWR/mFQA8B1aRWz16cXhSTJj r81f05c1NYpVPe3/a+ljffO8uF2NdI0giKM3wzqXu2ToXATUWGkJ2zqirRMmWvA4 NMyrG8Dx8Nlu2VMrPAe3VuPAFnW7kViKOuZn+B1wo6tKwRwys1Bj0= Received: (qmail 128112 invoked by alias); 14 Nov 2019 12:36:06 -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 128098 invoked by uid 89); 14 Nov 2019 12:36:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, RCVD_IN_JMF_BL, SPF_PASS autolearn=ham version=3.3.1 spammy=debug_tree, H*F:D*ru, HContent-Transfer-Encoding:8bit X-HELO: forward103p.mail.yandex.net Received: from forward103p.mail.yandex.net (HELO forward103p.mail.yandex.net) (77.88.28.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2019 12:36:05 +0000 Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 0BC3118C102E for ; Thu, 14 Nov 2019 15:36:03 +0300 (MSK) Received: from sas2-69645cccb3fe.qloud-c.yandex.net (sas2-69645cccb3fe.qloud-c.yandex.net [2a02:6b8:c08:bd8e:0:640:6964:5ccc]) by mxback9g.mail.yandex.net (mxback/Yandex) with ESMTP id lS5S5yHP3Q-a2YmbT0T; Thu, 14 Nov 2019 15:36:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1573734963; bh=P/S+6oMiXh6FZ2ZJY6Iff4TqCns1f8QFgiG+gTms7M0=; h=In-Reply-To:Subject:To:From:References:Date:Message-Id; b=kF/zBEkFpHhe5qFP0ibRbf3rZ7oOMcM0yGTRaCfJqRw6WzDZxfMxxhrGGsgVOJvF5 8u32o07aybhO+D0dqXcojQj/2Cc1d3B6opFp4wAZ1bJQ0fjWmOTQmuU2UojCRkYvgH 0BOalC8Vg1h/lTfv9ET8B/g+HNakNDUpFNbcNWF0= Authentication-Results: mxback9g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas2-69645cccb3fe.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 3TzL6Skx66-a2VGGdJ7; Thu, 14 Nov 2019 15:36:02 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Konstantin Kharlamov To: gcc-patches@gcc.gnu.org Subject: [PATCH v2 1/2] gdbinit.in: call a function with "call", not "set" Date: Thu, 14 Nov 2019 15:35:53 +0300 Message-Id: <20191114123554.1291122-2-Hi-Angel@yandex.ru> In-Reply-To: <20191114123554.1291122-1-Hi-Angel@yandex.ru> References: <20191114123554.1291122-1-Hi-Angel@yandex.ru> MIME-Version: 1.0 X-IsSubscribed: yes Calling a function foo in gdb as "set foo()" results in a warning. Disregarding, it looks wrong to call a function with "set". Let's use "call" instead. 2019-11-14 Konstantin Kharlamov * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm): Use "call" instead of "set". --- gcc/gdbinit.in | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) v2: fixed changelog in commit message diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 42302aecfe3..a933ddc6141 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -26,7 +26,7 @@ Works only when an inferior is executing. end define pr -set debug_rtx ($) +call debug_rtx ($) end document pr @@ -35,7 +35,7 @@ Works only when an inferior is executing. end define prl -set debug_rtx_list ($, debug_rtx_count) +call debug_rtx_list ($, debug_rtx_count) end document prl @@ -50,7 +50,7 @@ it using debug_rtx_list. Usage example: set $foo=debug_rtx_find(first, 42) end define pt -set debug_tree ($) +call debug_tree ($) end document pt @@ -59,7 +59,7 @@ Works only when an inferior is executing. end define pct -set debug_c_tree ($) +call debug_c_tree ($) end document pct @@ -68,7 +68,7 @@ Works only when an inferior is executing. end define pgg -set debug_gimple_stmt ($) +call debug_gimple_stmt ($) end document pgg @@ -77,7 +77,7 @@ Works only when an inferior is executing. end define pgq -set debug_gimple_seq ($) +call debug_gimple_seq ($) end document pgq @@ -86,7 +86,7 @@ Works only when an inferior is executing. end define pgs -set debug_generic_stmt ($) +call debug_generic_stmt ($) end document pgs @@ -95,7 +95,7 @@ Works only when an inferior is executing. end define pge -set debug_generic_expr ($) +call debug_generic_expr ($) end document pge @@ -104,7 +104,7 @@ Works only when an inferior is executing. end define pmz -set mpz_out_str(stderr, 10, $) +call mpz_out_str(stderr, 10, $) end document pmz @@ -140,7 +140,7 @@ Print the name of the type-node that is $. end define pdd -set debug_dwarf_die ($) +call debug_dwarf_die ($) end document pdd @@ -167,7 +167,7 @@ Print the fields of an instruction that is $. end define pbs -set print_binding_stack () +call print_binding_stack () end document pbs @@ -176,7 +176,7 @@ including the global binding level. end define pbm -set bitmap_print (stderr, $, "", "\n") +call bitmap_print (stderr, $, "", "\n") end document pbm