summaryrefslogtreecommitdiff
path: root/gdb/obsd-nat.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-02-27 23:23:46 +0100
committerMark Kettenis <kettenis@gnu.org>2014-02-28 22:45:51 +0100
commit863e4da4b6713fbd0b3a19fe3a7f7be1ea34f704 (patch)
treee6a6b2ae7376a204d42a9ca63b519414a9fdc014 /gdb/obsd-nat.h
parent89de4da46b3b3629c51e6e1a37177a6269dc8b05 (diff)
downloadbinutils-gdb-863e4da4b6713fbd0b3a19fe3a7f7be1ea34f704.tar.gz
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.
Diffstat (limited to 'gdb/obsd-nat.h')
-rw-r--r--gdb/obsd-nat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/obsd-nat.h b/gdb/obsd-nat.h
new file mode 100644
index 00000000000..ad021fc4a88
--- /dev/null
+++ b/gdb/obsd-nat.h
@@ -0,0 +1,25 @@
+/* Native-dependent code for OpenBSD.
+
+ Copyright (C) 2014 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef OBSD_NAT_H
+#define OBSD_NAT_H
+
+extern void obsd_add_target (struct target_ops *);
+
+#endif /* obsd-nat.h */