mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* sparc-nat.c: Include "inf-ptrace.h".
(sparc_target): New function. * sparc-nat.h: Update copyright year. (sparc_target): New prototype. * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h". (_initialize_sparcnbsd_nat): Construct and add target vector. * sparc64nbsd-nat.c: Include "target.h". (_initialize_sparc64nbsd_nat): Construct and add target vector. * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o): Update dependencies. * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and inftarg.o, add inf-ptrace.o. * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and inftarg.o, add inf-ptrace.o and bsd-kvm.o. (NAT_FILE): Set to nm-bsd.h. (LOADLIBES): New variable. * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and infarg.o, add inf-ptrace.o. * config/sparc/nm-nbsdaout.h: Remove file. * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o. * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o. * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
This commit is contained in:
@ -35,6 +35,7 @@
|
||||
|
||||
#include "sparc-tdep.h"
|
||||
#include "sparc-nat.h"
|
||||
#include "inf-ptrace.h"
|
||||
|
||||
/* With some trickery we can use the code in this file for most (if
|
||||
not all) ptrace(2) based SPARC systems, which includes SunOS 4,
|
||||
@ -304,6 +305,20 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
|
||||
memcpy (readbuf, buf + offset, len);
|
||||
return len;
|
||||
}
|
||||
|
||||
/* Create a prototype generic SPARC target. The client can override
|
||||
it with local methods. */
|
||||
|
||||
struct target_ops *
|
||||
sparc_target (void)
|
||||
{
|
||||
struct target_ops *t;
|
||||
|
||||
t = inf_ptrace_target ();
|
||||
t->to_fetch_registers = fetch_inferior_registers;
|
||||
t->to_store_registers = store_inferior_registers;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
/* Provide a prototype to silence -Wmissing-prototypes. */
|
||||
|
Reference in New Issue
Block a user