aboutsummaryrefslogtreecommitdiff
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
parent1c8c740728d840f30f9818d9dd683908bd0a3473 (diff)
downloadgdb-7681f3392e902b7f78cf0e1faafad97404ee4238.zip
gdb-7681f3392e902b7f78cf0e1faafad97404ee4238.tar.gz
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/Makefile.in4
-rw-r--r--gdb/inf-child.c11
-rw-r--r--gdb/inf-ptrace.c1
4 files changed, 12 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 451d2ae..8899c2c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
+
* Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
problem.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 9d1ca0c..a90de94 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2043,7 +2043,7 @@ infcall.o: infcall.c $(defs_h) $(breakpoint_h) $(target_h) $(regcache_h) \
$(objfiles_h) $(gdbcmd_h) $(command_h) $(gdb_string_h) $(infcall_h) \
$(dummy_frame_h)
inf-child.o: inf-child.c $(defs_h) $(regcache_h) $(memattr_h) $(symtab_h) \
- $(target_h) $(inferior_h)
+ $(target_h) $(inferior_h) $(gdb_string_h)
infcmd.o: infcmd.c $(defs_h) $(gdb_string_h) $(symtab_h) $(gdbtypes_h) \
$(frame_h) $(inferior_h) $(environ_h) $(value_h) $(gdbcmd_h) \
$(symfile_h) $(gdbcore_h) $(target_h) $(language_h) $(symfile_h) \
@@ -2057,7 +2057,7 @@ inflow.o: inflow.c $(defs_h) $(frame_h) $(inferior_h) $(command_h) \
$(inflow_h)
inf-ptrace.o: inf-ptrace.c $(defs_h) $(observer_h) $(gdb_ptrace_h) \
$(inflow_h) $(inferior_h) $(regcache_h) $(command_h) $(gdbcore_h) \
- $(inf_child_h) $(gdbcmd_h)
+ $(inf_child_h) $(gdbcmd_h) $(gdb_string_h)
infptrace.o: infptrace.c $(defs_h) $(command_h) $(frame_h) $(gdbcore_h) \
$(inferior_h) $(regcache_h) $(target_h) $(gdb_assert_h) \
$(gdb_wait_h) $(gdb_string_h) $(gdb_dirent_h) $(gdb_ptrace_h)
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;
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index f79f786..9e07706 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -30,6 +30,7 @@
#include "gdbcore.h"
#include "inf-child.h"
#include "gdbcmd.h"
+#include "gdb_string.h"
#include <sys/wait.h>
#include <signal.h>