[PATCH 0/4] Add gdb support for Cygwin x86_64 core dumps (v2)

Jon Turney jon.turney@dronecode.org.uk
Tue Aug 18 15:32:45 GMT 2020


On 13/08/2020 17:48, Eli Zaretskii wrote:
>> Cc: Eli Zaretskii <eliz@gnu.org>
>> From: Jon Turney <jon.turney@dronecode.org.uk>
>> Date: Thu, 13 Aug 2020 15:43:41 +0100
>>
>>> Thanks, but isn't this NEWS-worthy?
>>
>> This doesn't add a new feature to gdb, just (belatedly) makes it work on
>> x86_64 Cygwin as it does on x86 cygwin.
>>
>> What would you suggest adding to NEWS?
> 
> Something like "GDB now supports core file debugging for Cygwin
> programs."

This feature has existed for x86 Cygwin since 2000 (and it's been 
possible to try to use it for x86_64 since that was added, but it just 
fails with an assert)

I'll make a patch to add "GDB now supports core file debugging for 
x86_64 Cygwin programs." to NEWS.

>>   > And what about some documentation
>>   > for the manual?
>>
>> No changes should be needed to the existing documentation of debugging
>> using core files (since there shouldn't be any difference in behaviour
>> when using Cygwin core dumps)
> 
> Is there perhaps something special that needs to be done to produce
> Cygwin core files?  Or do you use the same commands as on Posix hosts
> ("ulimit -c" etc.)?
There are some special steps needed at the moment (more due to 
implementation shortcomings than real difficulties), which are described 
in Cygwin documentation.

I can't find any mention of 'ulimit -c' or how core files might be 
produced on any platform in the current gdb documentation, so I'm not 
sure why Cygwin needs to be a special case here.


More information about the Gdb-patches mailing list