[PATCH] gdb: recognize 64 bits Windows executables as Cygwin osabi

Jon Turney jon.turney@dronecode.org.uk
Sat Mar 14 15:35:23 GMT 2020


On 10/03/2020 15:45, Simon Marchi wrote:
> On 2020-03-10 11:16 a.m., Eli Zaretskii wrote:
>>> From: Jon Turney <jon.turney@dronecode.org.uk>
>>> 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.
> 
> If I understand correctly, that's one practical reason for introducing the separate
> "Windows" OS ABI?

That's the suggestion in:

https://sourceware.org/bugzilla/show_bug.cgi?id=21500


More information about the Gdb-patches mailing list