aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-17 18:07:46 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-17 18:07:46 +0000
commit06648491d7c95ff1100c347d526f6ae76a14c9e5 (patch)
tree85d81b7ba05dfdd7b9a4a989d9e991f3d3bd2259 /gdb/mips-tdep.c
parent16aff9a6772b8c51d550e2c0a2f1e60bd24739a1 (diff)
downloadgdb-06648491d7c95ff1100c347d526f6ae76a14c9e5.zip
gdb-06648491d7c95ff1100c347d526f6ae76a14c9e5.tar.gz
gdb-06648491d7c95ff1100c347d526f6ae76a14c9e5.tar.bz2
* mips-tdep.c (mips_single_step_through_delay): Put back check for
breakpoint lost with the introduction of this function.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 64e3cc1..8038837 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -4148,6 +4148,9 @@ mips_single_step_through_delay (struct gdbarch *gdbarch,
if (mips_pc_is_mips16 (pc))
return 0;
+ if (!breakpoint_here_p (pc + 4))
+ return 0;
+
if (!safe_frame_unwind_memory (frame, pc, buf, sizeof buf))
/* If error reading memory, guess that it is not a delayed
branch. */