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 B30CA394B030 for ; Tue, 10 Mar 2020 15:16:12 +0000 (GMT) Received: from fencepost.gnu.org ([2001:470:142:3::e]:37699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jBgc7-0005Om-4Z; Tue, 10 Mar 2020 11:16:11 -0400 Received: from [176.228.60.248] (port=3329 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jBgc6-0001cG-2y; Tue, 10 Mar 2020 11:16:10 -0400 Date: Tue, 10 Mar 2020 17:16:12 +0200 Message-Id: <83pndk9r5v.fsf@gnu.org> From: Eli Zaretskii To: Jon Turney Cc: gdb-patches@sourceware.org In-Reply-To: <85cd5fc2-8fa7-3612-b974-b3a3261bbb29@dronecode.org.uk> (message from Jon Turney on Sun, 8 Mar 2020 14:05:10 +0000) Subject: Re: [PATCH] gdb: recognize 64 bits Windows executables as Cygwin osabi References: <20200307041742.31158-1-simon.marchi@efficios.com> <83zhcsa8my.fsf@gnu.org> <4bd435cd-b06d-e0fc-70a9-9a8a18d73987@efficios.com> <835zfg9hz5.fsf@gnu.org> <85cd5fc2-8fa7-3612-b974-b3a3261bbb29@dronecode.org.uk> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS 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: Tue, 10 Mar 2020 15:16:13 -0000 > From: Jon Turney > Date: Sun, 8 Mar 2020 14:05:10 +0000 > > >> So what we can do is add an "MS-Windows" osabi and make "Cygwin" and > >> "MS-Windows" functionally equivalent. Any "pei-i386" or "pei-x86-64" > >> executable would be detected as "MS-Windows". > > I believe this suggestion for x86_64 is wrong, in the other direction: > x86_64 Cygwin is LP64, but Windows is LLP64 (Se also table in [1]) If the LP64 thing is part of what defines the OS ABI, then yes, Cygwin should have a separate value. > (currently 'print sizeof(long)' incorrectly returns 4 on a gdb built for > Cygwin) So I guess calling it "Cygwin" doesn't help? ;-)