From 8785ced03ac5b8817f23f2bbfa590763a535cac2 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 10 Jan 2005 20:36:38 +0000 Subject: * 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. --- gdb/inf-ptrace.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gdb/inf-ptrace.h') diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index e9ceae3..ef86b51 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 -- cgit v1.1