diff options
author | 2011-12-31 22:44:50 +0000 | |
---|---|---|
committer | 2011-12-31 22:44:50 +0000 | |
commit | 5b35567920fb4e4a8ca34bc4eace4a677de8bbff (patch) | |
tree | 369004fdac82b670dd62e42916e1053325359cf9 | |
parent | Implement a concatenating discipline for softraid. (diff) | |
download | wireguard-openbsd-5b35567920fb4e4a8ca34bc4eace4a677de8bbff.tar.xz wireguard-openbsd-5b35567920fb4e4a8ca34bc4eace4a677de8bbff.zip |
Properly recognize threads in OpenBSD core dumps.
-rw-r--r-- | gnu/usr.bin/binutils/bfd/elf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf.c b/gnu/usr.bin/binutils/bfd/elf.c index af38fc96b0f..5e1e5640829 100644 --- a/gnu/usr.bin/binutils/bfd/elf.c +++ b/gnu/usr.bin/binutils/bfd/elf.c @@ -6983,6 +6983,11 @@ elfcore_grok_openbsd_procinfo (bfd *abfd, Elf_Internal_Note *note) static bfd_boolean elfcore_grok_openbsd_note (bfd *abfd, Elf_Internal_Note *note) { + int lwp; + + if (elfcore_netbsd_get_lwpid (note, &lwp)) + elf_tdata (abfd)->core_lwpid = lwp; + if (note->type == NT_OPENBSD_PROCINFO) return elfcore_grok_openbsd_procinfo (abfd, note); |