From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 1A85F393EC33 for ; Wed, 13 May 2020 12:01:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1A85F393EC33 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-NBbai-GjNOGSmYvzVp4P4A-1; Wed, 13 May 2020 08:01:24 -0400 X-MC-Unique: NBbai-GjNOGSmYvzVp4P4A-1 Received: by mail-wm1-f71.google.com with SMTP id e15so2463492wme.1 for ; Wed, 13 May 2020 05:01:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ruABpKRFWGQfv+S5X3EO9YTEQUvn6mcsWkY5NvnxRGg=; b=Wo3YWJWFdx0FqdKpFGjo6zfDEyQR0YgSWuVunEQ3clALIvfwKAljM/MRBxbnkdVn88 x0NsAFcHtGgMUQRhYNFADjXYx4BJRbljjfpagIstFHL7Sqg9fGwh2TtQFG+qZQUFMF4R O1eMZSq5XxBXi5HeirmwImyduZAoQXrPyQJig4Twx+kho+xNUOiqOPpXtylfOB9HvTAJ JPnYx0aYhFr/f4sck2jBVMivmwGMAJLrx3cPdm9m92UOUOcDIHOO5krhPbJd+oalcY1H mYiIwLrH06ePyGzu8cqtwRDWnbpvlKmx9sWo8v3LsX0B2D+xtw6MA3nDwhnBUT1XgNod TCvA== X-Gm-Message-State: AGi0PuYc2zLNhk6ZFxuGxMNhi6RBXOsYrYdgNYwFunCgL7THOH0Z13b3 SvWUQZFdHZmmgabApvDxqFJnVp1daXPFb6ELsp5UQp2Nxp5V6CxjEJODB4NQsS37IfBuVOKLc+F Mrb8DJt5lTwcIY31NPGegMA== X-Received: by 2002:adf:fec9:: with SMTP id q9mr29639195wrs.181.1589371283507; Wed, 13 May 2020 05:01:23 -0700 (PDT) X-Google-Smtp-Source: APiQypLL0YvgfAHogiy0dMwzrrt+rXqWorkGJbbEg/Cz14J/PV4+f2Tbe129JjY81lWTpiR1RAgKDA== X-Received: by 2002:adf:fec9:: with SMTP id q9mr29639181wrs.181.1589371283288; Wed, 13 May 2020 05:01:23 -0700 (PDT) Received: from ?IPv6:2001:8a0:f909:7b00:56ee:75ff:fe8d:232b? ([2001:8a0:f909:7b00:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id v11sm27551218wrv.53.2020.05.13.05.01.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 05:01:22 -0700 (PDT) Subject: Re: GDBserver ports cleanup To: Christian Biesinger , Simon Marchi References: <0d22aed0-9a24-7369-795d-587ec6b99d11@polymtl.ca> Cc: "gdb-patches@sourceware.org" From: Pedro Alves Message-ID: <6046157a-80fc-95d1-ff06-0892343c6f34@redhat.com> Date: Wed, 13 May 2020 13:01:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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, 13 May 2020 12:01:30 -0000 On 5/12/20 9:26 PM, Christian Biesinger via Gdb-patches wrote: > On Tue, May 12, 2020 at 11:48 AM Simon Marchi via Gdb-patches >> About Windows support for ARM, I don't really know about it. I think that our port >> was targeting Windows CE [2], which can probably be considered obsolete. However, >> Windows 10 supposedly runs on ARM [3], so it might be relevant to keep it? I don't really >> know if the current GDBserver code would help for that or not. In doubt, I won't propose >> to remove it. > > If indeed the win32-arm support handles Windows 10, I think it would > be good to keep it, but I am not sure it does -- win32-arm-low.cc does > have these lines: > /* Correct in either endianness. We do not support Thumb yet. */ > static const unsigned long arm_wince_breakpoint = 0xe6000010; > #define arm_wince_breakpoint_len 4 > > Note mention of WinCE. Also, I am not so familiar with Thumb but I > believe that's widely used on ARM these days? > > So my vote would be to remove this for now and if someone wants to > revive it there's the git history. win32-arm support in gdbserver is only for Windows CE. I was the one who wrote it, it was the reason I got into GDB hacking in the first place. :-) There was no Windows for ARM back then. I don't object removing it. I haven't built a compiler or gdbserver for WinCE in years, and I doubt anyone else has^W^W^W^W^W^W^W^W^W^W^W^W Wow, I just found out that someone forked my old cegcc project, and updated it based on a much more modern GCC: https://max.kellermann.name/projects/cegcc/ I had no idea. Look like he has some local GDB in his github, though dated from 2016/2018. If you do remove it, then you'll want to remove all the code guarded under _WIN32_WCE in win32-low.cc, and also wincecompat.c. There's also ARM WinCE support on the GDB side, in arm-wince-tdep.c. I'm not sure there's that much salvageable for an eventual Windows for ARM port. For example, Windows for ARM is strictly Thumb-2, while I don't recall ever considering Thumb-2 back then. WinCE was FPA, I believe, while Windows for ARM is VFP. The ABIs are just different, and WinCE is weird beyond belief. (no "errno", no concept for "current directory", etc.). Other than nostalgia for being what got me into GDB, I really won't miss it myself. Thanks, Pedro Alves