From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id 51016385E006 for ; Thu, 26 Mar 2020 20:39:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 51016385E006 Received: by mail-qt1-x834.google.com with SMTP id z12so6739328qtq.5 for ; Thu, 26 Mar 2020 13:39:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nfwbBIvEPKkHBqFExgDYt4L9/TPIVQ+iNDUvBBaepz0=; b=Pd4uyOuULrhu7nzBtMxJySPn0rh+rFAq3J+o82oFHx75fNPfOhp2moMbIkH9aCsqnW FGRv0mrx3LwcSykCcrfM8jSup2jsjF0rP38BCWB7oPoIU0i54VIMbQulFnT0RUbP2QuU /dvzgzE9W2SiO88Bv1GkrHxqV1RmKRM8gnRH8iL9vfi282OudBe9E9dRpDUEcaK1GiMX WUq4btVQORNxRvy5zz3lrfxnTWQ0f3VOCPvkZrrIwRM9MQZuQmDzU+FHD/S5tbJxgqAS Rqsq/j2b4KpTJAXqh6q7kKUwR/5M/fFzyisMTnQY1JyH4gKG5pNocWLV9/QdoUBGZfeZ QvaQ== X-Gm-Message-State: ANhLgQ03ULi43b4PsMb1ouPrkKgsylkg3FuWacgBVRzkWBDAKBDtgsfP nql3jI/+gwcJLxKH4NH05/i3iK2riVtvCfnSn07kUQ== X-Google-Smtp-Source: ADFU+vvac7QYsAQPzUIF/c8pJ66XPbmkuZvpDste9OHBmM/SE1hZY5u8SYl7IVM7YV/Yfs3OC8ZgBsgRICNqGdKxa9Q= X-Received: by 2002:aed:3225:: with SMTP id y34mr10645549qtd.19.1585255165488; Thu, 26 Mar 2020 13:39:25 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <692595410.5392254.1585254931564@mail.yahoo.com> From: Christian Biesinger Date: Thu, 26 Mar 2020 15:38:47 -0500 Message-ID: Subject: Re: [PATCH v2] Fix WOW64 process system DLL paths To: Hannes Domani Cc: Gdb-patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-21.9 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 20:39:28 -0000 On Thu, Mar 26, 2020 at 3:35 PM Hannes Domani via Gdb-patches wrote: > > Am Donnerstag, 26. M=C3=A4rz 2020, 20:26:14 MEZ hat Eli Zaretskii Folgendes geschrieben: > > > > 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__". > > Yes, for me (on Win7) it also happens with the same dlls in the 32-bit gd= b > as with the 64-bit gdb. > But it shouldn't matter, since for 32-bit gdb all C:\Windows\system32 pat= hs > are automatically redirected[1] to C:\Windows\SysWOW64 anyways. > > [1] https://docs.microsoft.com/en-us/windows/win32/winprog64/file-system-= redirector Even so, it's probably less confusing for the user if what GDB displays actually matches reality? Christian