From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iXVfEGJ/pWH6UAAAWB0awg (envelope-from ) for ; Mon, 29 Nov 2021 20:33:22 -0500 Received: by simark.ca (Postfix, from userid 112) id 312101F0CE; Mon, 29 Nov 2021 20:33:22 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 149791ECEB for ; Mon, 29 Nov 2021 20:33:21 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A17A385BF9D for ; Tue, 30 Nov 2021 01:33:20 +0000 (GMT) Received: from gateway36.websitewelcome.com (gateway36.websitewelcome.com [192.185.194.2]) by sourceware.org (Postfix) with ESMTPS id 7D505385841C for ; Tue, 30 Nov 2021 01:33:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7D505385841C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tromey.com Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 27637400FF78D for ; Mon, 29 Nov 2021 19:33:07 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id rs15m8nOzzD3Vrs15m41Lv; Mon, 29 Nov 2021 19:33:07 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=bnqNfMwdIfaV5tblD8+JuS0r5CSMbQLromtdzeAUhwI=; b=eUQKDq8HbgvByDU2h54yvrJwyl +eyO6bL0PlFL+VhQZymOgI1sLKHeCy26bxEVsCA17UAklFW1299IDIwTV9wpNoXpxUA1nFifkYF32 duUyhTVnCeaQ5rT6awsItM7pd; Received: from 97-122-84-67.hlrn.qwest.net ([97.122.84.67]:51980 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mrs14-000sGC-Sh; Mon, 29 Nov 2021 18:33:06 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 1/3] Remove Irix case from find_file_and_directory Date: Mon, 29 Nov 2021 18:33:02 -0700 Message-Id: <20211130013304.4135367-2-tom@tromey.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211130013304.4135367-1-tom@tromey.com> References: <20211130013304.4135367-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.84.67 X-Source-L: No X-Exim-ID: 1mrs14-000sGC-Sh X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-84-67.hlrn.qwest.net (localhost.localdomain) [97.122.84.67]:51980 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes 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: , Cc: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" find_file_and_directory has a special case for the Irix 6.2 compiler. Since this is long obsolete, this patch removes it. --- gdb/dwarf2/read.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 57538fc0adf..3cf0c9ea2a8 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10509,15 +10509,6 @@ find_file_and_directory (struct die_info *die, struct dwarf2_cu *cu) res.comp_dir = cu->per_objfile->objfile->intern (comp_dir_storage.c_str ()); } - if (res.comp_dir != NULL) - { - /* Irix 6.2 native cc prepends .: to the compilation - directory, get rid of it. */ - const char *cp = strchr (res.comp_dir, ':'); - - if (cp && cp != res.comp_dir && cp[-1] == '.' && cp[1] == '/') - res.comp_dir = cp + 1; - } if (res.name == NULL) res.name = ""; -- 2.31.1