From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id k48eKJV7PGlv/TsAWB0awg (envelope-from ) for ; Fri, 12 Dec 2025 15:31:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1765571477; bh=LmGcWQyu06YCys0sra4t4mggQy8Z+OpZjIjEKZEIfrc=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JKmmJ4einTP3FgwY6cq/NgUd0Wpmt2MIzkk6M3p+3J2jWu1g5RH2ZZi1kF4dNb2oN 43Z2YQjPpM5xtgGlA0MRPSnE6vQjCkvOGJ3/mMQbQaU5oZEJYnEMYsmH+bQUhjF4gG zGDVmiQWNC5tSe/sTk4RDIgAeZJNLco4YvMYMHCw= Received: by simark.ca (Postfix, from userid 112) id 9158C1E08D; Fri, 12 Dec 2025 15:31:17 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=soSeDO56; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D0F8C1E08D for ; Fri, 12 Dec 2025 15:31:16 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 614F04BA2E23 for ; Fri, 12 Dec 2025 20:31:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 614F04BA2E23 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=soSeDO56 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id C02104BA2E23 for ; Fri, 12 Dec 2025 20:30:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C02104BA2E23 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C02104BA2E23 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765571445; cv=none; b=C7T2/3uh7+NOiqkUfV2QKTm0a7ZU+K/Ei2Y1SMA7rIcWEihTLVVA0edQOBC682HnlpS0NZOW0L98+VudXvsBJy70vv/nz98Z/r0B5pidyk3WziItRrIF+ff73udmoMQwUt7BrRY7qaLENhLURh547l3Ncl2/Iyt7HemqN8gX6LY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765571445; c=relaxed/simple; bh=LmGcWQyu06YCys0sra4t4mggQy8Z+OpZjIjEKZEIfrc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=GjVU1pb2Z+LXgMEgJsq0HKskbpf06+izbMQeLfeWc0heF9JTuKQt4+P/3a/iJo1XfP1/9ubZmFJkKyIgbOwQPjj4jIbqz/gdaay8wSPdr3mH2VVX98Oy3YTTvTuSniWLKL33VVUghplwxpgwHLO8u6BMlLGP/PBlBGOirVwo7LY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C02104BA2E23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1765571445; bh=LmGcWQyu06YCys0sra4t4mggQy8Z+OpZjIjEKZEIfrc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=soSeDO56QEiezzBGlzgKJ1z5+/BaCFX4MPp0nGEaOZtV246ZUA0KcAJEu3sqQfv7e SdeFAqfsmdMlsENARqyC7qX6NJfjMnivIkeYsA0h66oqqyPWEba3PuzadMPcgtrzyW K+nFuhxUGcbh2kcrpoTiV4WNXupRp31AeVth1RGg= Received: by simark.ca (Postfix) id 34B4A1E08D; Fri, 12 Dec 2025 15:30:45 -0500 (EST) Message-ID: <983843ca-f2f3-42cf-819f-2e61de0e2674@simark.ca> Date: Fri, 12 Dec 2025 15:30:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 26/44] gdb: load solibs if the target does not have the notion of an exec file To: Tankut Baris Aktemur , gdb-patches@sourceware.org, Markus Metzger References: <20250801-upstream-intelgt-mvp-v3-0-59ce0f87075b@intel.com> <20250801-upstream-intelgt-mvp-v3-26-59ce0f87075b@intel.com> Content-Language: fr From: Simon Marchi In-Reply-To: <20250801-upstream-intelgt-mvp-v3-26-59ce0f87075b@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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~public-inbox=simark.ca@sourceware.org On 8/1/25 5:37 AM, Tankut Baris Aktemur wrote: > In the 'post_create_inferior' function, the code block that calls the > solib ops' post-create-inferior hook function is guarded by a > null-check on exec_bfd. This prevents loading solibs of an inferior > if it does not have an exec_bfd. However, such a scenario could be > possible with relatively newer targets, such as GPUs, where an > executable does not exist but the GPU kernels are treated as > libraries. > > Add a check for this case. Could you check this patch (and series while at it)? It was written for a different reason, but I think it will address you issue. It gets rid of that "if" entirely. https://inbox.sourceware.org/gdb-patches/20250930185430.1614365-4-sdarche@efficios.com/ Simon