summaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-12 13:04:41 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-12 13:04:41 +0000
commit02314884b9373226691828bdd1c3a93a04c903c3 (patch)
treea7690a74ca87bfe82fb29ac2531742b6db4614b3 /gdb/inf-ptrace.h
parent8681c3bc7540374c7ce4cf0761b9970fda893dc0 (diff)
downloadgdb-02314884b9373226691828bdd1c3a93a04c903c3.tar.gz
2004-09-12 Andrew Cagney <cagney@gnu.org>
* ppcnbsd-nat.c: Include "inf-ptrace.h". (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers. (ppcnbsd_store_inferior_registers): Rename store_inferior_registers. (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace target. * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with inf-ptrace.o and inf-child.o. * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files. * Makefile.in: Update dependencies.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r--gdb/inf-ptrace.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h
new file mode 100644
index 00000000000..e9ceae3c963
--- /dev/null
+++ b/gdb/inf-ptrace.h
@@ -0,0 +1,31 @@
+/* Low level Unix child interface to ptrace, for GDB when running
+ under Unix.
+
+ Copyright 2004 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 2 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, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef INF_PTRACE_H
+#define INF_PTRACE_H
+
+/* Create a prototype ptrace target. The client can override it with
+ local methods. */
+
+extern struct target_ops *inf_ptrace_target (void);
+
+#endif