X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Fi386-bsd-nat.c;h=f7f27ceba0ba5cccd56d89a754c1d300cc168f9e;hb=f6ac5f3d63e03a81c4ff3749aba234961cc9090e;hp=ef2b534129d26c9a62dab5c137368ffcbfefb62f;hpb=3fffc0701a26bc0baa563fdc793cafb3d3f02a93;p=thirdparty%2Fbinutils-gdb.git diff --git a/gdb/i386-bsd-nat.c b/gdb/i386-bsd-nat.c index ef2b534129d..f7f27ceba0b 100644 --- a/gdb/i386-bsd-nat.c +++ b/gdb/i386-bsd-nat.c @@ -127,9 +127,8 @@ i386bsd_collect_gregset (const struct regcache *regcache, /* Fetch register REGNUM from the inferior. If REGNUM is -1, do this for all registers (including the floating point registers). */ -static void -i386bsd_fetch_inferior_registers (struct target_ops *ops, - struct regcache *regcache, int regnum) +void +i386bsd_fetch_inferior_registers (struct regcache *regcache, int regnum) { pid_t pid = get_ptrace_pid (regcache_get_ptid (regcache)); @@ -191,9 +190,8 @@ i386bsd_fetch_inferior_registers (struct target_ops *ops, /* Store register REGNUM back into the inferior. If REGNUM is -1, do this for all registers (including the floating point registers). */ -static void -i386bsd_store_inferior_registers (struct target_ops *ops, - struct regcache *regcache, int regnum) +void +i386bsd_store_inferior_registers (struct regcache *regcache, int regnum) { pid_t pid = get_ptrace_pid (regcache_get_ptid (regcache)); @@ -267,20 +265,6 @@ i386bsd_store_inferior_registers (struct target_ops *ops, } } -/* Create a prototype *BSD/i386 target. The client can override it - with local methods. */ - -struct target_ops * -i386bsd_target (void) -{ - struct target_ops *t; - - t = x86bsd_target (); - t->to_fetch_registers = i386bsd_fetch_inferior_registers; - t->to_store_registers = i386bsd_store_inferior_registers; - return t; -} - void _initialize_i386bsd_nat (void) {