diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-01-01 13:01:00 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-01-01 13:01:00 +0000 |
commit | 5d2d9d838382847de54dd179c68522345f332380 (patch) | |
tree | 01e485062d532a4a3b7143624aeee250fe88e45c /gnu/usr.bin | |
parent | ddc09e52dba9de77bd5b0c5a77edf7185846f0a8 (diff) |
Properly recognize threads in OpenBSD core dumps.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/bfd/elf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf.c b/gnu/usr.bin/binutils-2.17/bfd/elf.c index 76e76644d03..de8228740b4 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/elf.c +++ b/gnu/usr.bin/binutils-2.17/bfd/elf.c @@ -7875,6 +7875,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); |