Message ID | 20240118-submit-domain-hacks-2-v2-23-aecab29fa104@tromey.com |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> 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 7E1503858291 for <patchwork@sourceware.org>; Thu, 18 Jan 2024 20:38:05 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id E0E05385841B for <gdb-patches@sourceware.org>; Thu, 18 Jan 2024 20:32:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0E05385841B 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 E0E05385841B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705609945; cv=none; b=xL5+X0T8uBl3qKDobzpCmtAyM/fBiqS/B7TsmzdM9Ij5yQVKwXrLYu6P1czP2u5omn72xPNP1Lj7IBQVvvEtXXltaahh4Ccej3fOjm3tMihXa+Oc+zADQtLOdV+au1+K7FHKNts1p6rpLls7uvTinphpH9+ktB9s3hjAPDmNF+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705609945; c=relaxed/simple; bh=NEpjo5AVlRCjNyZP2Mqs5RG0klOSoT/lExOQHWcRpGw=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=kqsNi+/aynZySMDgO1z3ckkQPNIUgmwFZeLail7B3/6Xp0CqbaaI5QqsLNgrNbBFLifK3oyFp+jXml09BLLL7qKO60FrdcvwJysaxV3v7AddAeGHdjSW4ZrWqfDoF8IvjFCxcx0vT8xPmgRhZr05UhVxY4hsWx9GSBPs3RFGsRA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTPS id QXALrgtY5oMN9QZ3erOoD7; Thu, 18 Jan 2024 20:32:14 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id QZ3drrF531UTRQZ3drmni1; Thu, 18 Jan 2024 20:32:13 +0000 X-Authority-Analysis: v=2.4 cv=ZOXEJF3b c=1 sm=1 tr=0 ts=65a98ace 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=8Veq67EhIFtdNKN4G4AA: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=eRUpzvGvYplLNEDvAdWrg9i5mP+BYYqJy217Wc/N+fE=; b=KrGi8BsDd7Qvaj5hTvL0xGfVJe Ha4/A+eTj42vOihTX9wfS2JfSv5/XCZ+0VSfGaGu6NO9faq5Sm9a3al+1DiZ68S/2AzfZEAOgK4eD JEaJRObw3WK2Ec5fHuFZYz/Tk; 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 <tom@tromey.com>) id 1rQZ3d-002DCj-0j for gdb-patches@sourceware.org; Thu, 18 Jan 2024 13:32:13 -0700 From: Tom Tromey <tom@tromey.com> Date: Thu, 18 Jan 2024 13:32:21 -0700 Subject: [PATCH v2 23/30] Only search for "main" as a function MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240118-submit-domain-hacks-2-v2-23-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: 1rQZ3d-002DCj-0j 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: 25 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIyC6IsZIs0EZsK5f7D48d8yYona144k/h5/ijur6eot5eTiMSq1gvk0aQfd7Z/RPEvTj/yDm0kbzgZnZr7S6B11mfCqPH+xEeYRxaka7Cn5dLJOYN4Q OTOsLSaTLIC2QlaJd7YJl87OtEDdGGSna3vInb7Ml67d4ew4+A+CNKqBxtW6vlRhjLvWQzABLuPpZI9Wx43MVkTlT8kQ0eUSxGU= X-Spam-Status: No, score=-3022.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, 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 <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Restructure symbol domains
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | fail | Patch failed to apply |
Commit Message
Tom Tromey
Jan. 18, 2024, 8:32 p.m. UTC
This changes find_main_name to restrict its search to the function domain. --- gdb/symtab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdb/symtab.c b/gdb/symtab.c index 30b12d6f4eb..517e843244b 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -6435,7 +6435,8 @@ find_main_name (void) [&symbol_found_p, pspace] (objfile *obj) { language lang - = obj->lookup_global_symbol_language ("main", SEARCH_VFT, + = obj->lookup_global_symbol_language ("main", + SEARCH_FUNCTION_DOMAIN, &symbol_found_p); if (symbol_found_p) {