[PATCH 0/5] bfd: Add support for Cygwin x86_64 core dumps (v2)

Jon Turney jon.turney@dronecode.org.uk
Sun Jul 12 12:55:37 GMT 2020


Fixes and additions support x86_64 in reading the NT_WIN32PSTATUS ELF notes
in a Cygwin "core dump".

As far as I know, the only way to generate these "core dumps" is to use
Cygwin's 'dumper' tool, which requires some fixes on x86_64 [1].

[1] https://cygwin.com/pipermail/cygwin-patches/2020q3/010313.html

Changes since v1 to address review comments:

- Check note size before reading data everywhere
- Define some constants for note types

Jon Turney (5):
  Read tid from correct offset in win32pstatus NOTE_INFO_THREAD
  Define constants for win32pstatus ELF notes
  Don't hardcode CONTEXT size for a NOTE_INFO_THREAD win32pstatus note
  Refine size constraints applied to win32pstatus ELF notes
  Add handling for 64-bit module addresses in Cygwin core dumps

 bfd/ChangeLog | 27 ++++++++++++++++++++++
 bfd/elf.c     | 64 ++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 77 insertions(+), 14 deletions(-)

-- 
2.27.0



More information about the Binutils mailing list