aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-break.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1997-11-19 02:37:58 +0000
committerDoug Evans <dje@google.com>1997-11-19 02:37:58 +0000
commit13c9499d4e3b8ba790145ff7039c99c353a46fd4 (patch)
treea9f04070d0241b220949663072200772a7bdf90c /sim/common/sim-break.c
parent340d8e209ea20d05d3d26afd8060425baf72b03a (diff)
downloadgdb-13c9499d4e3b8ba790145ff7039c99c353a46fd4.zip
gdb-13c9499d4e3b8ba790145ff7039c99c353a46fd4.tar.gz
gdb-13c9499d4e3b8ba790145ff7039c99c353a46fd4.tar.bz2
* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
* sim-break.c (sim_handle_breakpoint): Likewise.
Diffstat (limited to 'sim/common/sim-break.c')
-rw-r--r--sim/common/sim-break.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-break.c b/sim/common/sim-break.c
index d735c85..1478278 100644
--- a/sim/common/sim-break.c
+++ b/sim/common/sim-break.c
@@ -98,7 +98,7 @@ sim_handle_breakpoint (sd, cpu, cia)
struct sim_breakpoint *bp;
for (bp = STATE_BREAKPOINTS (sd); bp; bp = bp->next)
- if (bp->addr == cia)
+ if (bp->addr == CIA_ADDR (cia))
break;
if (!bp || !(bp->flags & SIM_BREAK_INSERTED))