Module Name: src
Committed By: uwe
Date: Mon Oct 31 23:10:16 UTC 2011
Modified Files:
src/external/gpl3/gdb/dist/gdb: shnbsd-tdep.c
Log Message:
shnbsd_software_single_step: fix logic botch. Now that removal of
software single step breakpoints is handled by the caller we no longer
need to keep static next_pc around.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.5 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.6
--- src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.5 Sat Oct 29 21:18:28 2011
+++ src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c Mon Oct 31 23:10:16 2011
@@ -359,14 +359,11 @@ shnbsd_get_next_pc (struct regcache *reg
int
shnbsd_software_single_step (struct frame_info *frame)
{
- static CORE_ADDR next_pc;
struct gdbarch *gdbarch = get_frame_arch (frame);
struct address_space *aspace = get_frame_address_space (frame);
struct regcache *regcache= get_current_regcache ();
CORE_ADDR pc = regcache_read_pc (regcache);
-
- if (pc != next_pc)
- next_pc = shnbsd_get_next_pc (regcache, pc);
+ CORE_ADDR next_pc = shnbsd_get_next_pc (regcache, pc);
insert_single_step_breakpoint (gdbarch, aspace, next_pc);
return 1;