From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTP id 363FE385E006 for ; Fri, 27 Mar 2020 06:58:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 363FE385E006 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eliz@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]:51599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHiwJ-0005UQ-BN; Fri, 27 Mar 2020 02:57:59 -0400 Received: from [176.228.60.248] (port=3235 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHiwI-0006iL-0c; Fri, 27 Mar 2020 02:57:58 -0400 Date: Fri, 27 Mar 2020 09:57:59 +0300 Message-Id: <83y2rm8etk.fsf@gnu.org> From: Eli Zaretskii To: Hannes Domani Cc: gdb-patches@sourceware.org In-Reply-To: <692595410.5392254.1585254931564@mail.yahoo.com> (message from Hannes Domani via Gdb-patches on Thu, 26 Mar 2020 20:35:31 +0000 (UTC)) Subject: Re: [PATCH v2] Fix WOW64 process system DLL paths References: <20200324192351.3904-1-ssbssa.ref@yahoo.de> <20200324192351.3904-1-ssbssa@yahoo.de> <6fcfc7b1-5b1d-1bca-5bd8-06b075d626e6@simark.ca> <840438313.3764470.1585146130281@mail.yahoo.com> <1d7bb2df-1f3e-9ff7-ea38-05db350192d2@simark.ca> <30076034.3775038.1585146951973@mail.yahoo.com> <831rpf9bol.fsf@gnu.org> <692595410.5392254.1585254931564@mail.yahoo.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 27 Mar 2020 06:58:04 -0000 > Date: Thu, 26 Mar 2020 20:35:31 +0000 (UTC) > From: Hannes Domani via Gdb-patches > > > It looks like the same problem exists in the 32-bit Windows build of > > GDB, when it runs on 64-bit Windows 10: "info sharedlibrary" shows > > C:\Windows\system32 instead of C:\Windows\SysWOW64 (it doesn't happen > > on 64-bit Windows 7, for example).  So I guess the code which replaces > > the former with the latter should also be in the 32-bit build, not > > just "#ifdef __x86_64__". > > Yes, for me (on Win7) it also happens with the same dlls in the 32-bit gdb > as with the 64-bit gdb. > But it shouldn't matter, since for 32-bit gdb all C:\Windows\system32 paths > are automatically redirected[1] to C:\Windows\SysWOW64 anyways. > > [1] https://docs.microsoft.com/en-us/windows/win32/winprog64/file-system-redirector I know, but "info sharedlibrary" is a user command, and we shouldn't really expect all our users to be aware of this redirection. the code is already there, so all we need is to remove 2 #ifdef's and use what's already there. WDYT?