Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: gdb/amd64bsd-nat.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/amd64-windows-tdep.c ('k') | gdb/amd64bsd-nat.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « gdb/amd64-windows-tdep.c ('k') | gdb/amd64bsd-nat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698