summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-26 14:13:24 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-26 14:13:24 +0000
commit9e1ce8e0ff2bb94ac29a8b822823524d9c3b00bb (patch)
treef41550be723f382f358b8cc1f5219c12eea29d7c
parent4858ddf7015805d8e50569f3e676f34db787cd0f (diff)
downloadgdb-9e1ce8e0ff2bb94ac29a8b822823524d9c3b00bb.tar.gz
2004-10-26 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_software_single_step): Move to here ... * config/mips/tm-mips.h: ... from here. * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) (SOFTWARE_SINGLE_STEP): Delete. * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/config/mips/tm-linux.h5
-rw-r--r--gdb/config/mips/tm-mips.h3
-rw-r--r--gdb/mips-linux-tdep.c2
-rw-r--r--gdb/mips-tdep.h2
5 files changed, 12 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 176fd45b85f..6fab098fe2e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2004-10-26 Andrew Cagney <cagney@gnu.org>
+
+ * mips-tdep.h (mips_software_single_step): Move to here ...
+ * config/mips/tm-mips.h: ... from here.
+ * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
+ (SOFTWARE_SINGLE_STEP): Delete.
+ * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
+
2004-10-25 Andrew Cagney <cagney@gnu.org>
* NEWS: Add Changes since GDB 6.3 section.
diff --git a/gdb/config/mips/tm-linux.h b/gdb/config/mips/tm-linux.h
index 7b10e4e6d54..2012fec824b 100644
--- a/gdb/config/mips/tm-linux.h
+++ b/gdb/config/mips/tm-linux.h
@@ -39,11 +39,6 @@
#include "config/tm-linux.h"
-/* We do single stepping in software. */
-
-#define SOFTWARE_SINGLE_STEP_P() 1
-#define SOFTWARE_SINGLE_STEP(sig,bp_p) mips_software_single_step (sig, bp_p)
-
#undef IN_SOLIB_DYNSYM_RESOLVE_CODE
#define IN_SOLIB_DYNSYM_RESOLVE_CODE(PC) mips_linux_in_dynsym_resolve_code (PC)
int mips_linux_in_dynsym_resolve_code (CORE_ADDR pc);
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h
index 040ab157059..8efb229dd4a 100644
--- a/gdb/config/mips/tm-mips.h
+++ b/gdb/config/mips/tm-mips.h
@@ -107,6 +107,3 @@ extern int mips_ignore_helper (CORE_ADDR pc);
typedef unsigned long t_inst; /* Integer big enough to hold an instruction */
#endif /* TM_MIPS_H */
-
-/* Single step based on where the current instruction will take us. */
-extern void mips_software_single_step (enum target_signal, int);
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index dce507f410e..81d3e1e6453 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -1167,6 +1167,8 @@ mips_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_skip_solib_resolver (gdbarch, mips_linux_skip_resolver);
+ set_gdbarch_software_single_step (gdbarch, mips_software_single_step);
+
/* This overrides the MIPS16 stub support from mips-tdep. But no
one uses MIPS16 on GNU/Linux yet, so this isn't much of a loss. */
set_gdbarch_in_solib_call_trampoline (gdbarch, mips_linux_in_dynsym_stub);
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h
index a28f7297eb0..67d8cd855c9 100644
--- a/gdb/mips-tdep.h
+++ b/gdb/mips-tdep.h
@@ -74,5 +74,7 @@ enum {
/* Defined in mips-tdep.c and used in remote-mips.c */
extern void deprecated_mips_set_processor_regs_hack (void);
+/* Single step based on where the current instruction will take us. */
+extern void mips_software_single_step (enum target_signal, int);
#endif /* MIPS_TDEP_H */