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 ESMTPS id D46F738930D3 for ; Wed, 29 Apr 2020 16:06:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D46F738930D3 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]:58114) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpDm-0001Kn-5E; Wed, 29 Apr 2020 12:06:02 -0400 Received: from [176.228.60.248] (port=1851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTpDe-0001Mh-3b; Wed, 29 Apr 2020 12:05:58 -0400 Date: Wed, 29 Apr 2020 19:05:35 +0300 Message-Id: <83pnbqxoog.fsf@gnu.org> From: Eli Zaretskii To: Simon Marchi Cc: ssbssa@yahoo.de, gdb-patches@sourceware.org In-Reply-To: <42561057-d7d8-58cb-f461-3f7bb92f2239@simark.ca> (message from Simon Marchi on Wed, 29 Apr 2020 11:28:57 -0400) Subject: Re: [PATCH v2] Implement debugging of WOW64 processes in gdbserver References: <20200427133416.9314-1-ssbssa.ref@yahoo.de> <20200427133416.9314-1-ssbssa@yahoo.de> <7ec0c0b7-5425-d766-326b-9d5b13b755b4@simark.ca> <471105047.4011567.1588157665165@mail.yahoo.com> <83tv12xqy2.fsf@gnu.org> <42561057-d7d8-58cb-f461-3f7bb92f2239@simark.ca> X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, 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: Wed, 29 Apr 2020 16:06:13 -0000 > Cc: ssbssa@yahoo.de, gdb-patches@sourceware.org > From: Simon Marchi > Date: Wed, 29 Apr 2020 11:28:57 -0400 > > > It is not supported on 32-bit Windows; such calls fail and set the > > last error code to ERROR_INVALID_FUNCTION. > > > > I'm not sure what this means for calling these functions directly. > > >From what I understand, the program will still compile and link, but the call will fail. If that's what happens, then OK. I was afraid GDB will refuse to run because it doesn't find the entries for these functions in the respective DLL. > Anyway, if we only use them in some `#ifdef __x86_64__` (as this patch does), we won't > have this problem. Yes.