Simple patch taken from base ...
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/gdb/Makefile,v retrieving revision 1.19 diff -u -p -r1.19 Makefile --- Makefile 22 Dec 2011 20:27:31 -0000 1.19 +++ Makefile 20 Feb 2012 22:26:08 -0000 @@ -4,7 +4,7 @@ COMMENT= GNU debugger CATEGORIES= devel DISTNAME= gdb-7.2 -REVISION= 7 +REVISION= 8 HOMEPAGE= http://www.gnu.org/software/gdb/ Index: patches/patch-bfd_elf_c =================================================================== RCS file: patches/patch-bfd_elf_c diff -N patches/patch-bfd_elf_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-bfd_elf_c 20 Feb 2012 22:26:08 -0000 @@ -0,0 +1,15 @@ +$OpenBSD$ +--- bfd/elf.c.orig Mon Feb 20 23:19:34 2012 ++++ bfd/elf.c Mon Feb 20 23:21:01 2012 +@@ -8334,6 +8334,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); +
