From patchwork Fri Nov 8 12:14: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: 1191843 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-512817-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="ax3msHZx"; dkim=pass (1024-bit key; unprotected) header.d=yandex.ru header.i=@yandex.ru header.b="Qik42sL6"; 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 478fP73qyVz9sVH for ; Fri, 8 Nov 2019 23:15:39 +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:mime-version :content-transfer-encoding; q=dns; s=default; b=aBwXwHWkbM8c5uro UgyF9Wt65ftrSU5IT+ZtR2BUivFOWVqL9anfaNJ+dtSgh8m9APQ6CJc1XX+Rgdmc VIvlYpwKfJlOUlPPWJtFHIgcwfA25TXoV9FIxULiYog+BfUfp3QplMA7+/4urgxT L3es+JscvpybedGKUukQ/F0286c= 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:mime-version :content-transfer-encoding; s=default; bh=eeS+rKOcmxaXmMuCS+l0GU Vedzg=; b=ax3msHZxSKTgrPcvwkGBxQR9Akxjtz6xIoMvVNm0AzeblbYo5Uzqzf SkRuoSwIA5O9ncIgUrElJv4o4uE/TJyXIVUJ2XGRx1UpDRIFL2d33kKZzj44vITe o/guVW7XR1Bzj4KfytsXyUIju/2omNF1JzRrHanwp6nonkqWlywpo= Received: (qmail 70942 invoked by alias); 8 Nov 2019 12:15:31 -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 70796 invoked by uid 89); 8 Nov 2019 12:15:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.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, SPF_PASS autolearn=ham version=3.3.1 spammy=H*MI:yandex, 1407, H*F:D*ru, UD:ru X-HELO: forward104o.mail.yandex.net Received: from forward104o.mail.yandex.net (HELO forward104o.mail.yandex.net) (37.140.190.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Nov 2019 12:15:16 +0000 Received: from mxback23o.mail.yandex.net (mxback23o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::74]) by forward104o.mail.yandex.net (Yandex) with ESMTP id A6480941832 for ; Fri, 8 Nov 2019 15:15:04 +0300 (MSK) Received: from iva7-f08b2a8dca2b.qloud-c.yandex.net (iva7-f08b2a8dca2b.qloud-c.yandex.net [2a02:6b8:c0c:6e00:0:640:f08b:2a8d]) by mxback23o.mail.yandex.net (mxback/Yandex) with ESMTP id 6HKTuC8OxG-F4g0ZYt3; Fri, 08 Nov 2019 15:15:04 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1573215304; bh=E+4796NsNeztf6XuxDAmDMhTuAIh2p6fU0gqYocRWlM=; h=Subject:To:From:Date:Message-Id; b=Qik42sL6kNvGfyG02pnLhCH1vGEXZpFoMYKqmqb9D8fCy1B5d3Zq1k9gbPAHS4EtY l4vBxONOPEK9VpjkutJ2/ZCVpI+ZLteyuxSpGklbRB682qKbcFQjrTkEIuBvIkgBxt 3tobTAt+07mb4cLzlK25r2mXtdCNMP6RVD9SKc+c= Authentication-Results: mxback23o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva7-f08b2a8dca2b.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 46IDtzFzGu-F3XWB4WL; Fri, 08 Nov 2019 15:15:03 +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] gdbinit.in: call a function with "call", not "set" Date: Fri, 8 Nov 2019 15:14:53 +0300 Message-Id: <20191108121453.530233-1-Hi-Angel@yandex.ru> MIME-Version: 1.0 X-IsSubscribed: yes Last time a command that calls a function of debuggee with "set" was added is 2013 year. Apparently something has changed since then, since doing "set foo()" in gdb to call a "foo()" results in error. Disregarding, it looks wrong to call a function with "set". Let's use "call" instead. (debug_rtx,debug_rtx_list,debug_tree,debug_c_tree,debug_gimple_stmt, debug_gimple_seq,mpz_out_str,debug_dwarf_die,print_binding_stack, bitmap_print): Replace "set" with "call" --- gcc/gdbinit.in | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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