aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-16 19:54:18 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-16 19:54:18 +0000
commit7681f3392e902b7f78cf0e1faafad97404ee4238 (patch)
treedda9af4b2ea3e5c9bc0f2cad1267b038a739e0ae /gdb/inf-child.c
parent1c8c740728d840f30f9818d9dd683908bd0a3473 (diff)
downloadfsf-binutils-gdb-7681f3392e902b7f78cf0e1faafad97404ee4238.zip
fsf-binutils-gdb-7681f3392e902b7f78cf0e1faafad97404ee4238.tar.gz
fsf-binutils-gdb-7681f3392e902b7f78cf0e1faafad97404ee4238.tar.bz2
2004-09-16 Andrew Cagney <cagney@gnu.org>
* inf-child.c: Include "gdb_string.h". (inf_child_core_file_to_sym_file): Delete. (inf_child_target): Set to_fetch_registers and to_store_registers. * inf-ptrace.c: Include "gdb_string.h". * Makefile.in: Update all dependencies.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r--gdb/inf-child.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index f729611..d33f4c1 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -27,6 +27,7 @@
#include "symtab.h"
#include "target.h"
#include "inferior.h"
+#include "gdb_string.h"
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers. */
@@ -188,14 +189,6 @@ inf_child_pid_to_exec_file (int pid)
return NULL;
}
-static char *
-inf_child_core_file_to_sym_file (char *core)
-{
- /* The target stratum for a running executable need not support this
- operation. */
- return NULL;
-}
-
struct target_ops *
inf_child_target (void)
{
@@ -206,6 +199,8 @@ inf_child_target (void)
t->to_open = inf_child_open;
t->to_post_attach = inf_child_post_attach;
t->to_post_wait = inf_child_post_wait;
+ t->to_fetch_registers = inf_child_fetch_inferior_registers;
+ t->to_store_registers = inf_child_store_inferior_registers;
t->to_prepare_to_store = inf_child_prepare_to_store;
t->to_insert_breakpoint = memory_insert_breakpoint;
t->to_remove_breakpoint = memory_remove_breakpoint;