From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 1EEBB3858D37 for ; Thu, 17 Oct 2024 19:13:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EEBB3858D37 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 1EEBB3858D37 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=1729192425; cv=none; b=vt3yMAQtQ0ST9Tg/YqZ9lBqigoyCgtBhMDuAIMYIomBJuAgH4DYM9biYhFf6TM7i8EGRpVsOkPaRqAopRm4+xOMrdKxCZcOCKEREMJrBIMqibZnSMSpyHOCnvJJ8OGlOc5QXVzZ0j/xNA8+0Cmpq9hYTe8Ze/np4WF7xFgiuSxI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729192425; c=relaxed/simple; bh=8IalWmMv9uK0JSMT4rRgzSSGv2mGIU5TBJ3drYJcWCM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=clGD7uZKC8+KZ41WpzetsUzJKnn1tuxdSKY+6YeabAlQS/LlIIKSStqqzMI35IcBCCdnSLhlx9GDcX+ytws333U4mJXy6y3FSuDZiVOsmXc2OqPoxImd/bgIP3KuyFyXOcG+GblSEAr4+CjVOQhVpohWr9ttqLkB6PNhuPPeM+o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6007a.ext.cloudfilter.net ([10.0.30.247]) by cmsmtp with ESMTPS id 1Io4tiWD5umtX1VwEtnky5; Thu, 17 Oct 2024 19:13:34 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 1VwDtcqW6BSPw1VwDtnVan; Thu, 17 Oct 2024 19:13:33 +0000 X-Authority-Analysis: v=2.4 cv=UsVlNfwB c=1 sm=1 tr=0 ts=671161dd a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=DAUX931o1VcA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=lvQO-ePqBv4ZpQLnfTQA:9 a=6KDmPahKW5ILxopYhpMU:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=6Ogn3jAGHLSNbaov7Orx:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: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=8IalWmMv9uK0JSMT4rRgzSSGv2mGIU5TBJ3drYJcWCM=; b=vLhb9Sez96m0Q9KU+SUTfv3JIV juyNJxoIw1NnfG8C6tbwt1T1WmavC0pI2v5lm/E66kCU756pwoAkOQ9WkNp+zOSosZMBCyme7g0v7 ERwMXEbPjbN1GR9bZN+hsdL95; Received: from 97-122-113-155.hlrn.qwest.net ([97.122.113.155]:41254 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1t1VwC-002fsT-2a; Thu, 17 Oct 2024 13:13:32 -0600 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v2 2/5] [gdb] Handle bad alloc handling in gdb_bfd_open In-Reply-To: <20241011143544.15400-2-tdevries@suse.de> (Tom de Vries's message of "Fri, 11 Oct 2024 16:35:41 +0200") References: <20241011143544.15400-1-tdevries@suse.de> <20241011143544.15400-2-tdevries@suse.de> X-Attribution: Tom Date: Thu, 17 Oct 2024 13:13:32 -0600 Message-ID: <87cyjyfspv.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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.113.155 X-Source-L: No X-Exim-ID: 1t1VwC-002fsT-2a X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-113-155.hlrn.qwest.net (murgatroyd) [97.122.113.155]:41254 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFRYTuG9H4GZs3SWMcolKTKe0+MCBUf8HXjLR2Eaq9822mrLwiRjoVqgLBHeROoMmATB4jAgc0vQ3nxp9sDtzCTS4jfubQA9V1G7Lcfihv8ucD+1sEDA jAmkc6QZ+BD/0Oy3XqbkwNzKMteKyi2TVBKdtvm11WlTgXEeIExitLTD2EqWy2vZy6lOBuX7aTKGeKy9doRSlmtX6vSuXmW5NFM= X-Spam-Status: No, score=-3014.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP 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: >>>>> "Tom" == Tom de Vries writes: Tom> Fix this by reversing the order, inserting abfd into gdb_bfd_cache only after Tom> a successful call to gdb_bfd_init_data, such that we get: Tom> ... Tom> $ gdb -q -batch -ex "file a.out" -ex "file a.out" Tom> bad alloc I believe this is fine. Approved-By: Tom Tromey Tom