aboutsummaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-04 21:49:58 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-04 21:49:58 +0000
commitbaf92889ebd77dceec279733db08e537eefbff49 (patch)
tree46f836a0e5e0b0fe877ce37226f1c6ac3bb60282 /gdb/inftarg.c
parent6e4c6c91defcde7bd46625742b7df8108e8d597f (diff)
downloadgdb-baf92889ebd77dceec279733db08e537eefbff49.zip
gdb-baf92889ebd77dceec279733db08e537eefbff49.tar.gz
gdb-baf92889ebd77dceec279733db08e537eefbff49.tar.bz2
* target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
* inftarg.c: Update copyright year. (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE. * sparc-nat.c: Include "target.h" and "gdb_assert.h". (sparc_xfer_wcookie): New function. * sparc-tdep.c (sparc_fetch_wcookie): New function. * Makefile.in (sparc-nat.o): Update dependencies. * config/sparc/nm-nbsd.h: Include "target.h". (NATIVE_XFER_WCOOKIE): New define. (sparc_xfer_wcookie): New prototype.
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index 67706d2..a6f40ec 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -1,7 +1,7 @@
/* Target-vector operations for controlling Unix child processes, for GDB.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999,
- 2000, 2002, 2003 Free Software Foundation, Inc.
+ 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
Contributed by Cygnus Support.
@@ -585,6 +585,13 @@ child_xfer_partial (struct target_ops *ops, enum target_object object,
return NATIVE_XFER_AUXV (ops, object, annex, readbuf, writebuf,
offset, len);
+ case TARGET_OBJECT_WCOOKIE:
+#ifndef NATIVE_XFER_WCOOKIE
+#define NATIVE_XFER_WCOOKIE(OPS,OBJECT,ANNEX,WRITEBUF,READBUF,OFFSET,LEN) (-1)
+#endif
+ return NATIVE_XFER_WCOOKIE (ops, object, annex, readbuf, writebuf,
+ offset, len);
+
default:
return -1;
}