Index: gdb/amd64bsd-nat.h |
diff --git a/gdb/common/linux-procfs.h b/gdb/amd64bsd-nat.h |
similarity index 62% |
copy from gdb/common/linux-procfs.h |
copy to gdb/amd64bsd-nat.h |
index a4ba4a1b48db5e809ba7848b7ae3774cb937dbfc..bbceedc517afca967abbdedd45b7503b78726c4a 100644 |
--- a/gdb/common/linux-procfs.h |
+++ b/gdb/amd64bsd-nat.h |
@@ -1,4 +1,5 @@ |
-/* Linux-specific PROCFS manipulation routines. |
+/* Native-dependent code for AMD64 BSD's. |
+ |
Copyright (C) 2011-2012 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -16,14 +17,19 @@ |
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 COMMON_LINUX_PROCFS_H |
-#define COMMON_LINUX_PROCFS_H |
+#ifndef AMD64BSD_NAT_H |
+#define AMD64BSD_NAT_H |
+ |
+/* Low level amd64 debug register functions. */ |
+ |
+extern void amd64bsd_dr_set_control (unsigned long control); |
+ |
+extern void amd64bsd_dr_set_addr (int regnum, CORE_ADDR addr); |
-#include <unistd.h> |
+extern CORE_ADDR amd64bsd_dr_get_addr (int regnum); |
-/* Return the TGID of LWPID from /proc/pid/status. Returns -1 if not |
- found. */ |
+extern unsigned long amd64bsd_dr_get_status (void); |
-extern int linux_proc_get_tgid (int lwpid); |
+extern unsigned long amd64bsd_dr_get_control (void); |
-#endif /* COMMON_LINUX_PROCFS_H */ |
+#endif /* amd64bsd-nat.h */ |