Support rthreads on OpenBSD 5.2 and later.
authorMark Kettenis <kettenis@gnu.org>
Thu, 27 Feb 2014 22:23:46 +0000 (23:23 +0100)
committerMark Kettenis <kettenis@gnu.org>
Fri, 28 Feb 2014 21:45:51 +0000 (22:45 +0100)
commit863e4da4b6713fbd0b3a19fe3a7f7be1ea34f704
treee6a6b2ae7376a204d42a9ca63b519414a9fdc014
parent89de4da46b3b3629c51e6e1a37177a6269dc8b05
Support rthreads on OpenBSD 5.2 and later.

OpenBSD 5.2 and later have a proper threads implementation based on
kernel threads.  Debugging support is provided through additional
ptrace(2) requests, so this diff extends the generic code in
inf-ptrace.c with OpenBSD-specific code to discover additional threads.

gdb/ChangeLog:

        * obsd-nat.h: New file.
        * obsd-nat.c: New file.
        * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
        (ALLDEPFILES): Add obsd-nat.c.
gdb/ChangeLog
gdb/Makefile.in
gdb/obsd-nat.c [new file with mode: 0644]
gdb/obsd-nat.h [new file with mode: 0644]