diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-27 23:35:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-27 23:35:08 +0000 |
commit | 02331869322178ead208b8328caab67c5a77b6b3 (patch) | |
tree | 0e95f5333158653177ab82d4793d08af10c0d2ea /gdb/arc-tdep.c | |
parent | 5825dfc52513bdb91e298f7cf7642235644ee65a (diff) | |
download | gdb-02331869322178ead208b8328caab67c5a77b6b3.zip gdb-02331869322178ead208b8328caab67c5a77b6b3.tar.gz gdb-02331869322178ead208b8328caab67c5a77b6b3.tar.bz2 |
CARP:
STEP_SKIPS_DELAY - add STEP_SKIPS_DELAY_P and rewrite use removing
#ifdef's.
NO_SINGLE_STEP - replace with SOFTWARE_SINGLE_STEP_P +
SOFTWARE_SINGLE_STEP. Replace global variable one_stepped with static
singlestep_breakpoints_inserted_p. Cleanup infrun.c (scary!).
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 977135f..9295770 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -508,12 +508,6 @@ get_insn_type (insn, pc, target) } } -/* Non-zero if we just simulated a single-step. This is needed because we - cannot remove the breakpoints in the inferior process until after the - `wait' in `wait_for_inferior'. */ - -int one_stepped; - /* single_step() is called just before we want to resume the inferior, if we want to single-step it but there is no hardware or kernel single-step support. We find all the possible targets of the coming instruction and @@ -523,15 +517,16 @@ int one_stepped; set up a simulated single-step, we undo our damage. */ void -single_step (ignore) - enum target_signal ignore; /* sig, but we don't need it */ +arc_software_single_step (ignore, insert_breakpoints_p) + enum target_signal ignore; /* sig but we don't need it */ + int insert_breakpoints_p; { static CORE_ADDR next_pc, target; static int brktrg_p; typedef char binsn_quantum[BREAKPOINT_MAX]; static binsn_quantum break_mem[2]; - if (!one_stepped) + if (insert_breakpoints_p) { insn_type type; CORE_ADDR pc; @@ -558,8 +553,6 @@ single_step (ignore) target_insert_breakpoint (target, break_mem[1]); } - /* We are ready to let it go. */ - one_stepped = 1; } else { @@ -572,8 +565,6 @@ single_step (ignore) /* Fix the pc. */ stop_pc -= DECR_PC_AFTER_BREAK; write_pc (stop_pc); - - one_stepped = 0; } } |