]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
Read tid from correct offset in win32pstatus NOTE_INFO_THREAD
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 29 Jun 2020 14:54:41 +0000 (15:54 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 12 Aug 2020 14:08:21 +0000 (15:08 +0100)
commitff2084b9ef793b98241c6801217d3c3465baabbe
treee52692e6c70e8e3d3977009a36791bad49ef6049
parentc0ab14ae2a448941bc3bdc4266795e6ef2c38d85
Read tid from correct offset in win32pstatus NOTE_INFO_THREAD

Fix the offset used to read the tid from a win32pstatus ELF note.

This probably meant that registers were only being correctly recovered
from the core dump for the current thread.

It looks like this has beeen incorrect since 4a6636fb.

Also fix offsets used in NOTE_INFO_PROCESS (which is not actually
generated by the Cygwin dumper tool).

Also improve comment.

bfd/ChangeLog:

2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>

* elf.c (elfcore_grok_win32pstatus): Fix the offset used to read
the tid from a win32pstatus NOTE_INFO_THREAD ELF note.  Fix
offsets used to read NOTE_INFO_PROCESS.
bfd/ChangeLog
bfd/elf.c