aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/frv/traps.c')
-rw-r--r--sim/frv/traps.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/sim/frv/traps.c b/sim/frv/traps.c
index 1263683..01adf41 100644
--- a/sim/frv/traps.c
+++ b/sim/frv/traps.c
@@ -110,18 +110,6 @@ frv_itrap (SIM_CPU *current_cpu, PCADDR pc, USI base, SI offset)
host_callback *cb = STATE_CALLBACK (sd);
USI num = ((base + offset) & 0x7f) + 0x80;
-#ifdef SIM_HAVE_BREAKPOINTS
- /* Check for breakpoints "owned" by the simulator first, regardless
- of --environment. */
- if (num == TRAP_BREAKPOINT)
- {
- /* First try sim-break.c. If it's a breakpoint the simulator "owns"
- it doesn't return. Otherwise it returns and let's us try. */
- sim_handle_breakpoint (sd, current_cpu, pc);
- /* Fall through. */
- }
-#endif
-
if (STATE_ENVIRONMENT (sd) == OPERATING_ENVIRONMENT)
{
frv_queue_software_interrupt (current_cpu, num);
@@ -293,21 +281,10 @@ frv_break (SIM_CPU *current_cpu)
IADDR pc;
SIM_DESC sd = CPU_STATE (current_cpu);
-#ifdef SIM_HAVE_BREAKPOINTS
- /* First try sim-break.c. If it's a breakpoint the simulator "owns"
- it doesn't return. Otherwise it returns and let's us try. */
- pc = GET_H_PC ();
- sim_handle_breakpoint (sd, current_cpu, pc);
- /* Fall through. */
-#endif
-
if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
{
/* Invalidate the insn cache because the debugger will presumably
replace the breakpoint insn with the real one. */
-#ifndef SIM_HAVE_BREAKPOINTS
- pc = GET_H_PC ();
-#endif
sim_engine_halt (sd, current_cpu, NULL, pc, sim_stopped, SIM_SIGTRAP);
}