summaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-10 20:36:38 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-10 20:36:38 +0000
commitd0890411c7f3bb0e51e0c870f853a7700b620be2 (patch)
tree0e4af63d4da724924892efa013e3c7c21406de1e /gdb/inf-ptrace.h
parentaa65cfd7d7f2bfa3e2e4946641ce9fffa321a5b3 (diff)
downloadgdb-d0890411c7f3bb0e51e0c870f853a7700b620be2.tar.gz
* inf-ptrace.h: Update copyright year. Sync comment with
inf-ptrace.c. (inf_ptrace_trad_target): New prototype. * inf-ptrace.c: Update copyright year. Include "regcache.h" and "gdb_assert.h" (inf_ptrace_target): Add comment. (inf_ptrace+register_u_offset): New variable. (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) (inf_ptrace_store_register, inf_ptrace_store_registers) (inf_ptrace_trad_target): New functions. * Makefile.in (inf-ptrace.o): Update dependencies.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r--gdb/inf-ptrace.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h
index e9ceae3c963..ef86b518e27 100644
--- a/gdb/inf-ptrace.h
+++ b/gdb/inf-ptrace.h
@@ -1,7 +1,6 @@
-/* Low level Unix child interface to ptrace, for GDB when running
- under Unix.
+/* Low level child interface to ptrace.
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -28,4 +27,11 @@
extern struct target_ops *inf_ptrace_target (void);
+/* Create a "traditional" ptrace target. REGISTER_U_OFFSET should be
+ a function returning the offset within the user area where a
+ particular register is stored. */
+
+extern struct target_ops *
+ inf_ptrace_trad_target (CORE_ADDR (*register_u_offset)(int));
+
#endif