From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wqHTOmZLwWEWJgAAWB0awg (envelope-from ) for ; Mon, 20 Dec 2021 22:35:02 -0500 Received: by simark.ca (Postfix, from userid 112) id DE4791ECEB; Mon, 20 Dec 2021 22:35:02 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3C0B11ECEB for ; Mon, 20 Dec 2021 22:35:02 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A69A3858415 for ; Tue, 21 Dec 2021 03:35:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A69A3858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1640057701; bh=0bTiE19+hGBAK50kDshGL6XZPMS1qrl35W7IX64AAwY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wdL7ENwqp9wF8Q7AOVyTI0Zgyw7DBzALO9o35oRl6A1booJ/NS8dnLFwfSZ69q12c xDeI35sPN61qya8Iz7o7mh7nAhKGGCqc7x4JFMD0+qcoFzATctET3ZeKcjlVqepKhC PVsvnkO/ZaEFPhKGPAY2Ms1as94Cay0oeAwmFAJE= Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 6AAFE385841F for ; Tue, 21 Dec 2021 03:34:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AAFE385841F X-ASG-Debug-ID: 1640057670-0c856e3c18204b90001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id rjIXsQinETSYKYGd (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Dec 2021 22:34:31 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id D4174441B21; Mon, 20 Dec 2021 22:34:30 -0500 (EST) X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH] gdbarch-components.py: change empty "params" tuples to empty lists Date: Mon, 20 Dec 2021 22:34:30 -0500 X-ASG-Orig-Subj: [PATCH] gdbarch-components.py: change empty "params" tuples to empty lists Message-Id: <20211221033430.36010-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1640057671 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 2481 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.94776 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" During review, it was suggested to change the "params" parameter from a tuple to a list, for esthetic reasons. The empty ones are still tuples though, they should probably be changed to be empty lists, for consistency. It does not change anything in the script result. Change-Id: If13c6c527aa167a5ee5b45740e5f1bda1e9517e4 --- gdb/gdbarch-components.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gdb/gdbarch-components.py b/gdb/gdbarch-components.py index a5c3c38147fe..94a684cecc80 100644 --- a/gdb/gdbarch-components.py +++ b/gdb/gdbarch-components.py @@ -1688,7 +1688,7 @@ gdbarch_software_single_step routine, and true otherwise. """, type="bool", name="displaced_step_hw_singlestep", - params=(), + params=[], predefault="default_displaced_step_hw_singlestep", invalid=False, ) @@ -1890,7 +1890,7 @@ Return a type suitable to inspect extra signal information. """, type="struct type *", name="get_siginfo_type", - params=(), + params=[], predicate=True, invalid=True, ) @@ -2236,7 +2236,7 @@ True if inferiors share an address space (e.g., uClinux). """, type="int", name="has_shared_address_space", - params=(), + params=[], predefault="default_has_shared_address_space", invalid=False, ) @@ -2272,7 +2272,7 @@ Return the "auto" target charset. """, type="const char *", name="auto_charset", - params=(), + params=[], predefault="default_auto_charset", invalid=False, ) @@ -2283,7 +2283,7 @@ Return the "auto" target wide charset. """, type="const char *", name="auto_wide_charset", - params=(), + params=[], predefault="default_auto_wide_charset", invalid=False, ) @@ -2520,7 +2520,7 @@ they can override it. """, type="std::string", name="gcc_target_options", - params=(), + params=[], predefault="default_gcc_target_options", invalid=False, ) @@ -2535,7 +2535,7 @@ case. """, type="const char *", name="gnu_triplet_regexp", - params=(), + params=[], predefault="default_gnu_triplet_regexp", invalid=False, ) @@ -2548,7 +2548,7 @@ each address in memory. """, type="int", name="addressable_memory_unit_size", - params=(), + params=[], predefault="default_addressable_memory_unit_size", invalid=False, ) -- 2.34.1