From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 7D7A03858412 for ; Thu, 18 Jan 2024 20:32:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7D7A03858412 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 7D7A03858412 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705609942; cv=none; b=JgdoDbGV6fBrw2j3U6hzduxQFSFh62/K9W2e5K7GPjqbpuv1ZHjtVNl2GKwErb1tNZdCXcclOFiOSYp+rj815gkzBCPCa6Zpf6dv796GDz554ZGS7Ydl9EpSNfYgLxnj3QNW13HqfjqBVfJAtst9E1ivlbkg/viTEXJhveCsjQ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705609942; c=relaxed/simple; bh=ykwwFmUNVGZXCNs+p5V1OixzUg+4yBa3Ol43eebjOVQ=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=pgq8LI25HYUJj9lzmGnY8cQzFknYddpVYnXwgD4I7/oBgL+F/zGaVaL7Kl97ECAK9N09qT4gNhbIb0XN2bOGzegDJI36YdIbukT8rLpUIhzep8R2ZPv+z6ktrxl1kprCuAFdljWHRA7J6oC1lnqjI4hC8z03cyAfeOdfBOb0K/E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTPS id QTsDrBhvaCF6GQZ3drrczC; Thu, 18 Jan 2024 20:32:13 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id QZ3crH2h2RT1bQZ3cr8Fc6; Thu, 18 Jan 2024 20:32:12 +0000 X-Authority-Analysis: v=2.4 cv=MKVzJeVl c=1 sm=1 tr=0 ts=65a98acc a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=dEuoMetlWLkA: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=kFRHRV3OSQyAz5pQ8bW034pnuT8Hq8F1RdnBgOyof0s=; b=SkdCR8ou7UESEhBFyhGpN3iW+L o9P6gWULzAe0o5C8nzbj67Cb2aa3flG8ncs9Np+CzRl8//8CD2HtuBIWCOXG9IPTYDvYeqNEDN/0U YASwz7aTzd8pQvsmVSfdsydQY; Received: from 97-122-68-157.hlrn.qwest.net ([97.122.68.157]:50746 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 1rQZ3b-002DCj-31 for gdb-patches@sourceware.org; Thu, 18 Jan 2024 13:32:11 -0700 From: Tom Tromey Date: Thu, 18 Jan 2024 13:32:16 -0700 Subject: [PATCH v2 18/30] Remove some obsolete Python constants MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240118-submit-domain-hacks-2-v2-18-aecab29fa104@tromey.com> References: <20240118-submit-domain-hacks-2-v2-0-aecab29fa104@tromey.com> In-Reply-To: <20240118-submit-domain-hacks-2-v2-0-aecab29fa104@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.68.157 X-Source-L: No X-Exim-ID: 1rQZ3b-002DCj-31 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-68-157.hlrn.qwest.net ([192.168.0.21]) [97.122.68.157]:50746 X-Source-Auth: tom+tromey.com X-Email-Count: 20 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfMjtirMgPsiJu5LV29oYzkVU+PnPmtL5x8cCvuuV059LI2yid+X+x2X9hqaPIoKIZLj0N6ZTM39G5N3U50rK1pXFNU3GoEvDSKSmg4Gu1smb9K4geeFo S+sw+0KRmFdJx1KOXzA8N2Ugx9Q+zYSGLXB5T78Qpb/Y2FGTGOVL6DM3IIspnLC1X/tbynX4yl3506akxQhq1fkz3u29x0Wgx+4= X-Spam-Status: No, score=-3022.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_STOCKGEN,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 List-Id: 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 2fb68377bad..db8df891b29 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); } -- 2.43.0