openbsd-ports/devel/gdb/patches/patch-bfd_elf_c
2014-03-09 19:49:21 +00:00

16 lines
517 B
Plaintext

$OpenBSD: patch-bfd_elf_c,v 1.4 2014/03/09 19:49:21 pascal Exp $
--- bfd/elf.c.orig Thu Feb 6 03:21:29 2014
+++ bfd/elf.c Fri Feb 7 18:43:41 2014
@@ -8917,6 +8917,11 @@ elfcore_grok_openbsd_procinfo (bfd *abfd, Elf_Internal
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);