* 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.
This commit is contained in:
Mark Kettenis
2004-02-04 21:49:58 +00:00
parent 6e4c6c91de
commit baf92889eb
6 changed files with 73 additions and 9 deletions

View File

@@ -25,5 +25,17 @@
/* Get generic NetBSD native definitions. */
#include "config/nm-nbsd.h"
/* Support for StackGhost cookies. */
#include "target.h"
#define NATIVE_XFER_WCOOKIE sparc_xfer_wcookie
extern LONGEST sparc_xfer_wcookie (struct target_ops *ops,
enum target_object object,
const char *annex,
void *readbuf, const void *writebuf,
ULONGEST offset, LONGEST len);
#endif /* nm-nbsd.h */