From patchwork Tue Nov 21 03:53:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 80401 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A2413857C45 for ; Tue, 21 Nov 2023 03:54:39 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id 1EC6D3858C62 for ; Tue, 21 Nov 2023 03:53:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EC6D3858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1EC6D3858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700538805; cv=none; b=AzyrlwUeYF3AHzP3G4h2MRSapnicLonRkOmxieORgZXIYVFJHNvxXU2YWahydY75IaFIueYnQWQV8NqOH7GZiCplceX4NoojUN/++VNISIQM9x7S7SY93o6E/8mex0Jxyw1hALB09s50QC49ASGNQ/TQFX37qg6ihByyjIWMJEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700538805; c=relaxed/simple; bh=9KxGW4c9qNmzw/iocNcwbw7DO5dSTm80z26uDwgjC5U=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=GwqlyybP+G5ERP5/7amNagHEHemEqhhw50tN0Xl2pzw8OuSCHm6gAnJoTg9LWdmnnjUgNwc1rwkryOCL3j7N72ZL4Ajr/rhKC6Ys/EXjbhVSubE57zz92HQyNOkUhYuYeBruopY05TU7MoA16dx6cDWV8TIPe++bN3sW3PZDUis= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6001a.ext.cloudfilter.net ([10.0.30.140]) by cmsmtp with ESMTPS id 5BpqrOjv8jtZ35HpGrWynq; Tue, 21 Nov 2023 03:53:26 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 5HpBrwHykb8Qn5HpBr3fkf; Tue, 21 Nov 2023 03:53:21 +0000 X-Authority-Analysis: v=2.4 cv=IuQNzZzg c=1 sm=1 tr=0 ts=655c29b1 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=BNY50KLci1gA:10 a=Qbun_eYptAEA:10 a=lk1wNYbFhmqovUGGJqEA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gZvzQWflxpTCXFB2gIHaNqtJmOO1A+cO0yER8kAfrBY=; b=jYQ9/PPGxRmQ0I2anE+wV2pQAl t6ofUyNs/gV7c/xmNEs8N8ph1AEg1S6/cd0Ah8JeK1ditLjV8fW75A9Lx/TumETzK8S3mogV/JVNm EfALiUaq12C2ldd0+o9WQHofs; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:47856 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r5HpA-0040be-30 for gdb-patches@sourceware.org; Mon, 20 Nov 2023 20:53:20 -0700 From: Tom Tromey Date: Mon, 20 Nov 2023 20:53:48 -0700 Subject: [PATCH 17/29] Remove some obsolete Python constants MIME-Version: 1.0 Message-Id: <20231120-submit-domain-hacks-2-v1-17-29650d01b198@tromey.com> References: <20231120-submit-domain-hacks-2-v1-0-29650d01b198@tromey.com> In-Reply-To: <20231120-submit-domain-hacks-2-v1-0-29650d01b198@tromey.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.77.73 X-Source-L: No X-Exim-ID: 1r5HpA-0040be-30 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net ([192.168.0.21]) [97.122.77.73]:47856 X-Source-Auth: tom+tromey.com X-Email-Count: 18 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFZOzjROLZuGtX33TAEXbNXAkbjH/7ZFIJhbgd7pR4H+7v5PWQj58SeL5lNUdvQPDVRMelkp0GlwxZ5PmNekgb/if9sw3tf/3dLxhqU1XYHDeTMZ8zBy lXPtVprkJgL0GgSadrQSrMfaHVr23+HPLU1NB1Vp4vZzYhbaiZDMHoG9jCHdQgXU795nN3RZ/HxMI3mwX4YLY3lrdxhMK7rkru0= X-Spam-Status: No, score=-3023.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org The Python code has exported some constants, but they are no longer documented, and were never useful. This patch removes them. --- gdb/python/py-symbol.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 3c4a112f54b..bdfb4a3e594 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -686,20 +686,6 @@ gdbpy_initialize_symbols (void) #include "sym-domains.def" #undef DOMAIN - /* These remain defined for compatibility, but as they were never - correct, they are no longer documented. Eventually we can remove - them. These exist because at one time, enum search_domain and - enum domain_enum_tag were combined -- but different values were - used differently. Here we try to give them values that will make - sense if they are passed to gdb.lookup_symbol. */ - if (PyModule_AddIntConstant (gdb_module, "SYMBOL_VARIABLES_DOMAIN", - VAR_DOMAIN) < 0 - || PyModule_AddIntConstant (gdb_module, "SYMBOL_FUNCTIONS_DOMAIN", - VAR_DOMAIN) < 0 - || PyModule_AddIntConstant (gdb_module, "SYMBOL_TYPES_DOMAIN", - VAR_DOMAIN) < 0) - return -1; - return gdb_pymodule_addobject (gdb_module, "Symbol", (PyObject *) &symbol_object_type); }