From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uarEAzdr42qfmQgAWB0awg (envelope-from ) for ; Thu, 29 Oct 2026 11:50:15 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=undo.io header.i=@undo.io header.a=rsa-sha256 header.s=google header.b=eyXoNkIx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EB6F71E023; Thu, 29 Oct 2026 11:50:14 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 6D4311E023 for ; Thu, 29 Oct 2026 11:50:12 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D217B4BA79A6 for ; Thu, 29 Oct 2026 15:50:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D217B4BA79A6 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=undo.io header.i=@undo.io header.a=rsa-sha256 header.s=google header.b=eyXoNkIx Received: from mail-dl1-x1236.google.com (mail-dl1-x1236.google.com [IPv6:2607:f8b0:4864:20::1236]) by sourceware.org (Postfix) with ESMTPS id 029B04BA540B for ; Thu, 29 Oct 2026 15:49:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 029B04BA540B Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=undo.io Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=undo.io ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 029B04BA540B Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2607:f8b0:4864:20::1236 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793288985; cv=pass; b=uhAXF634NJS4dTq4/GrRdtFLwLRJcHAohNfVAdhrdZVWO/X3Ml87diAGDT8VxtLy7QFRos6BLb0fF5fOfuJ7wk+ncj567QHbjRRrV7j5UHlES+F3D5G5ro+BwPGsYo+MW4GyUyVl9v7xaO0dnpbjuFQoKDAkdsYwPt5Lr0vcV8A= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793288985; c=relaxed/simple; bh=/ZNr0QuSfmzDejNZL5YtPipG/9j9j3M5/Dd4zEuW6mI=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=nz3StFvSgc/+HwYB5lILdfWg6rqtiGq6Ff6PTGi8+6mi7tRw+01hQHfqOP5fvoVuK/LpZLIKX94xv9bnimxu6GMDmCcjzTsP/c8zFOYyM159BF5GtPCg+nKNzKQGlgUCHOMNpx7eJf5pPjjvNsIeX4Ypn3s3grL6meB3y0ffSSM= ARC-Authentication-Results: i=2; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=undo.io header.i=@undo.io header.a=rsa-sha256 header.s=google header.b=eyXoNkIx DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 029B04BA540B Received: by mail-dl1-x1236.google.com with SMTP id a92af1059eb24-1a8cc11ac42so911310c88.0 for ; Thu, 29 Oct 2026 08:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793288984; cv=none; d=google.com; s=arc-20260327; b=Fs/MdDmJ0veFUWeDs9BMZEYInETRIOc/IOQixy07ByrQUqTlWp/8FpBgfd9bOmZc8J H07yhLt25eDIZbTQ2bavlLekXuSlOZ+iyf/OEnMX0Qf8fxv5j2zwKsJD9uRykA3wd+Xp QGqWQKBaWlyH12bYFMtp3pn4dCIs1NyIjSgO+39dG5Vt8GHM2YA/ZsN9zZ4Z9v1FyekF zwgwxdl1IfMz7m5pMo4EgywD8sOyMsR3Nr5Di1Cgzzf2TOb3RiBoNYPl24nOI+J7m+pz Hw3vzcm/mJ/aeJamOD/x06aNyeCKtdgd6goGqRUzmPOXTPK4eFMvz2ZHO0UTymgqqPNx 1C/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=fegZf9dadJXJopt72dILzqm+pwECE6jyXbnfJkjG8DM=; fh=A/uMV/vZPiFljml6OBRJ1Kx5ULaMuViBJ0RZjEHhr/o=; b=rW8tbjUL/5Ygp0tXlpUTzyobDol+7xA1kE6OPwg9m1VpzcJNGSDwAuy73EdrgU+/UB imyBwiG+rhPbZ3FCLv+34a8C8bs/obtzEMbI+OidrmZib0w/KNiSeY9vgYWFyGWZy4tQ dqqSMzqjb8BlyV9enSwWRT1upGBHVkB6IFe4A0SuBCP5Cae7vb+CtgBxVcShcvF9q98I CL1FOoLGWuvkzTiNH5DsDeWC22Y+Z2HJAmO+LiprimZYAzRAsTw95fIHG8WvQ4eJFnpK YCBjQ1NjOcmq8++smvmhh1LR0kDWDHv+2VzmUV460gPz3YkryumQfyxIXTA+ns9xIav9 028A==; darn=sourceware.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=undo.io; s=google; t=1793288984; x=1793893784; darn=sourceware.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fegZf9dadJXJopt72dILzqm+pwECE6jyXbnfJkjG8DM=; b=eyXoNkIxdQwgceL58eiZIummhy569/b0jgNY7COxi0NqIuhU92VynN3vOMXieWDZhC SETSbGjn6kWWm1AjfqgIocePvB7IGEZ68Kds1P8xvvYXca5gu1cN7vdDVpVPMxz2omaA sOlABYJzT9ItQUp698rp1qDgmYjib1POmZrysM69WKLgQdCBK2DP/PFJBdnQaudcKb3W ezO4RRBTITdce6Nbkfzjt8nIr4+vI/sPZa5BSXxZGcT5zjMGK0iOjfGLJwai2EzrYUKD yozfD0oVMH9ZRjAGj+fLaGuEE0Ve/Eix/k1wz+Lu+5mhZ4khyRwx2SCFkW6QUxl39Hz+ cVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793288984; x=1793893784; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=fegZf9dadJXJopt72dILzqm+pwECE6jyXbnfJkjG8DM=; b=J0kZjyaG2435opsTDDPulqzwCzU3CiTmUruyHvcteWAAvp2raHrH2EvYlaak2oJq4n EDtAcacmg+ndiyj9OQFXBKuRPnkPn44PbSKZrZthK9r3ShenSKVLB0mJq2S0IPN7A8GQ +emEduiSVfGgKDCjR9mFHlLDb077zax1kmdUL9j5d6Pad6zVPviU1ELyoW7UwLG+5Ofn 9wfykDxxGe2e6NEmxIjJKW9/pCK+2GP7fLA7fImK7+GdvC7Sx1oqMFzQh/m2qeF6pJIu c46LyscTXjNF+LolKNqJDfrxdly+7HR+0+rQUOSyuH0XfVWmmvNhdtkT6G/zMJgKJsPA wuaQ== X-Gm-Message-State: AFq9FYILTUi3bbqYG/7NXr/xseZEpTAWHqiAvcgMu47HuoemnbhXFWi1 h9LeP2AbtnbzyVXetaE1C4biw8X2+ngKiBZqlVQ3OAOrZ+5ysb/2ybLdyB1R1FMTZfsYvmdP0PN yF9tn37c8lOEyXGUTY+UB7d0EhA377G1sH1mbfdAe0Q== X-Gm-Gg: AYBFou1w11AIOV9m2R5s6V94O9l3KLMNqkEhE4KBNcd8qubKDc89PGrItBjCvzwPH7D BC+wsctrZHZb4OM4x75EG32mC2oH0b1pvZaMXbkXbJ3g8AiAqL6l+jcZ7V5ZhB92lNd+POGkp1A 8E4yBgUMSOToiKoaMO4BwzvG5P7VMqYMQVb/m5MfWeyTj8OfHkRVuUJLaf1R2HOQ2X8DEzahteV FZ2FfZQsng7mneteuhWFKeb3HoGZEOyd8BSUacdJSjTROowzvzJbgXHNHlqBypiobaQMNSc2HZs 96LPK2oEForT2dGx6enJPG8AVfqrLHP4PDb7Mld0SSFrhfRt0aNi4dyxMog8U50PakPAsOjflhk YfjLIFRC522plK+VW3z9wKOTz/uTpBB06/jKffszKZKmtp/SAq9KGq0GNAf2Rmit93oFghA== X-Received: by 2002:a05:7022:6989:b0:165:90af:a25f with SMTP id a92af1059eb24-1a6cfa0c447mr9967496c88.41.1793288983827; Thu, 29 Oct 2026 08:49:43 -0700 (PDT) MIME-Version: 1.0 References: <20261008130642.54868-1-ejipa@undo.io> <87mrrzp6ez.fsf@tromey.com> In-Reply-To: <87mrrzp6ez.fsf@tromey.com> From: Eduard-Petru Jipa Date: Thu, 29 Oct 2026 15:49:58 +0000 X-Gm-Features: AclHuK986M7x2zr80hvSchaXcH0kLpyQYW6bE52PxnLiL5kOP-VU6cI9FkVWusg Message-ID: Subject: Re: [PATCH v3] gdb: don't abort shared library reload when one library fails to open To: Tom Tromey Cc: gdb-patches@sourceware.org, stephan.rohr@intel.com Content-Type: multipart/alternative; boundary="000000000000dc65a3065efca00d" 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 --000000000000dc65a3065efca00d Content-Type: text/plain; charset="UTF-8" Thanks for the approval Tom! I don't have write access, would it be possible to be added to the approval list so I can push this and any future patches? On Tue, 27 Oct 2026 at 14:25, Tom Tromey wrote: > >>>>> Eduard-Petru Jipa writes: > > > From: Eduard Jipa > > When the set of shared libraries is reloaded, for example after > > 'set sysroot' or 'set solib-search-path', reload_shared_libraries_1 > > calls solib_ops::bfd_open for each library in turn. This can throw an > > error, for example if the file found is not in executable format, or > > its architecture is not compatible with the target. > > > Nothing in the loop catches that error, so a single bad library stops > > the whole reload. Any libraries after it in the list are not reloaded, > > and the error propagates out of the command that triggered the reload. > > > Catch the error, print it, and carry on with the rest of the > > libraries. This matches what is already done for errors from > > solib_map_sections later in the same loop. The library that failed > > to open is handled as if it had not been found. > > > Add a test that builds a sysroot in which the first of two libraries > > is not a valid object file, and checks that, after 'set sysroot', the > > first library is no longer loaded and the second library is reloaded > > from the new sysroot. > > This looks good to me. Thank you for doing this. > Approved-By: Tom Tromey > > Tom > --000000000000dc65a3065efca00d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the approval Tom!

I don't have write access, would it be possible to be added to the app= roval list so I can push this and any future patches?

On Tue, 27 Oct 2026 at 14:25, Tom Tromey <tom@tromey.com> wrote:
>>>>> Eduard-Petru Jipa <ejipa@undo.io> writes:
> From: Eduard Jipa <ejipa@undo.io>
> When the set of shared libraries is reloaded, for example after
> 'set sysroot' or 'set solib-search-path', reload_share= d_libraries_1
> calls solib_ops::bfd_open for each library in turn.=C2=A0 This can thr= ow an
> error, for example if the file found is not in executable format, or > its architecture is not compatible with the target.

> Nothing in the loop catches that error, so a single bad library stops<= br> > the whole reload.=C2=A0 Any libraries after it in the list are not rel= oaded,
> and the error propagates out of the command that triggered the reload.=

> Catch the error, print it, and carry on with the rest of the
> libraries.=C2=A0 This matches what is already done for errors from
> solib_map_sections later in the same loop.=C2=A0 The library that fail= ed
> to open is handled as if it had not been found.

> Add a test that builds a sysroot in which the first of two libraries > is not a valid object file, and checks that, after 'set sysroot= 9;, the
> first library is no longer loaded and the second library is reloaded > from the new sysroot.

This looks good to me.=C2=A0 Thank you for doing this.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
--000000000000dc65a3065efca00d--