From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.143.47]) by sourceware.org (Postfix) with ESMTPS id BC62E3945C3E for ; Fri, 13 Mar 2020 18:16:59 +0000 (GMT) Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 023E2EE004 for ; Fri, 13 Mar 2020 13:16:59 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id Corij6jJzRP4zCorijSV9f; Fri, 13 Mar 2020 13:16:58 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uqT+o3WjYB29gEhojqzhh2Ne/yt07f//SZRi4iUJ7Jo=; b=gKd7h7/mJC11mn/a5H7GVAVTyu K7ENe93fKYxL0Cm5MyYkj9T8IYVIRPVVc+MwwKJF1Gs3RNYbLDFvRc/RCU5e9Fcs+CFkFAZupiUmG HnKTTeydqDt7cNl3w+7XJ5CnY; Received: from 184-96-250-69.hlrn.qwest.net ([184.96.250.69]:37700 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jCori-001RJP-LX; Fri, 13 Mar 2020 12:16:58 -0600 From: Tom Tromey To: "Hannes Domani via gdb-patches" Subject: Re: [PATCH] Implement debugging of WOW64 processes References: <20200303182057.8973-1-ssbssa.ref@yahoo.de> <20200303182057.8973-1-ssbssa@yahoo.de> X-Attribution: Tom Date: Fri, 13 Mar 2020 12:16:57 -0600 In-Reply-To: <20200303182057.8973-1-ssbssa@yahoo.de> (Hannes Domani via gdb-patches's message of "Tue, 3 Mar 2020 19:20:57 +0100") Message-ID: <87eetwdsrq.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 184.96.250.69 X-Source-L: No X-Exim-ID: 1jCori-001RJP-LX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 184-96-250-69.hlrn.qwest.net (murgatroyd) [184.96.250.69]:37700 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=no 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, 13 Mar 2020 18:17:00 -0000 >>>>> "Hannes" == Hannes Domani via gdb-patches writes: Hannes> For WOW64 processes, the Wow64* variants of SuspendThread, Hannes> GetThreadContext, SetThreadContext, and GetThreadSelectorEntry have to Hannes> be used instead. Hannes> And instead of EnumProcessModules, EnumProcessModulesEx with Hannes> LIST_MODULES_32BIT is necessary. I rebased my series to share some of the Windows code between gdb and gdbserver over this patch. I'm going to re-submit this shortly (I'm testing it now). That showed me that this patch modified gdb, but not gdbserver. That's fine; while we normally prefer parallel changes, I think we haven't generally required it. However, after some discussion on irc about this, I started wondering again if we should move to a model where we always use gdbserver as the back end. This would remove any possibility of divergence -- there would only be a single back-end for a given port. This would mean porting gdbserver to more hosts. I suppose we'd want to keep the target stack as-is, to support core files and remote-sim. This is good in a way because it would mean less work to make the transition. I looked through this: https://sourceware.org/gdb/wiki/LocalRemoteFeatureParity and it looks like most of the items are done. Tom