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

Message ID 20200712125542.1322-1-jon.turney@dronecode.org.uk
Headers show
Series
  • bfd: Add support for Cygwin x86_64 core dumps (v2)
Related show

Message

Jon Turney July 12, 2020, 12:55 p.m.
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