* 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-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.
#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);
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);
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);
/* 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 */