summaryrefslogtreecommitdiff
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
commite5ad8ca4fd77e43c0f203dac5008d88c193edfb2 (patch)
tree2d4ea4b87ef24ba451e20916ae645a19ae9cce54 /gdb/inf-child.c
parent88049b1ccdfc84b2f23e12f8fd621603b2529a8a (diff)
downloadgdb-e5ad8ca4fd77e43c0f203dac5008d88c193edfb2.tar.gz
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 f729611173a..d33f4c1bde7 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;