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 0B2CD385E034 for ; Thu, 26 Mar 2020 19:08:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0B2CD385E034 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]:40816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHXrV-0001OC-Dm; Thu, 26 Mar 2020 15:08:17 -0400 Received: from [176.228.60.248] (port=3021 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHXrU-0000zh-6Z; Thu, 26 Mar 2020 15:08:17 -0400 Date: Thu, 26 Mar 2020 21:08:10 +0200 Message-Id: <831rpf9bol.fsf@gnu.org> From: Eli Zaretskii To: Hannes Domani Cc: gdb-patches@sourceware.org In-Reply-To: <30076034.3775038.1585146951973@mail.yahoo.com> (message from Hannes Domani via Gdb-patches on Wed, 25 Mar 2020 14:35:51 +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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Status: No, score=-7.1 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: Thu, 26 Mar 2020 19:08:19 -0000 > Date: Wed, 25 Mar 2020 14:35:51 +0000 (UTC) > From: Hannes Domani via Gdb-patches > > > > But I figured my way with GetSystemWow64Directory is simpler. > > > > > > > > > Is the v2 OK to commit? > > > > Yes, thanks. > > Pushed, thanks. 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__".