diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-23 00:44:54 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-02-06 12:12:51 -0500 |
commit | 4c0d76b9c420bb29cb3365c5edc9c78c50d2b231 (patch) | |
tree | 1cbf362654cf185294337a5f27e6d3c94fdb9d65 /sim/iq2000 | |
parent | cd89c53f6d475cd05a1858b9195770e347fb2e9e (diff) | |
download | gdb-4c0d76b9c420bb29cb3365c5edc9c78c50d2b231.zip gdb-4c0d76b9c420bb29cb3365c5edc9c78c50d2b231.tar.gz gdb-4c0d76b9c420bb29cb3365c5edc9c78c50d2b231.tar.bz2 |
sim: watchpoints: use common sim_pc_get
Few arches implement STATE_WATCHPOINTS()->pc while all of them implement
sim_pc_get. Lets switch the sim-watch core for monitoring pc events to
the sim_pc_get API so this module works for all ports, and then we can
delete this old back channel of snooping in the port's cpu state -- the
code needs the pointer to the pc storage so that it can read out bytes
and compare them to the watchrange.
This also fixes the logic on multi-cpu sims by removing the limitation
of only being able to watch CPU0's state.
Diffstat (limited to 'sim/iq2000')
-rw-r--r-- | sim/iq2000/ChangeLog | 4 | ||||
-rw-r--r-- | sim/iq2000/sim-if.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sim/iq2000/ChangeLog b/sim/iq2000/ChangeLog index d5816bf..7ab017f 100644 --- a/sim/iq2000/ChangeLog +++ b/sim/iq2000/ChangeLog @@ -1,5 +1,9 @@ 2021-02-06 Mike Frysinger <vapier@gentoo.org> + * sim-if.c (sim_open): Delete call to STATE_WATCHPOINTS. + +2021-02-06 Mike Frysinger <vapier@gentoo.org> + * configure: Regenerate. 2021-01-30 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/iq2000/sim-if.c b/sim/iq2000/sim-if.c index de90e73..496b106 100644 --- a/sim/iq2000/sim-if.c +++ b/sim/iq2000/sim-if.c @@ -67,14 +67,6 @@ sim_open (kind, callback, abfd, argv) return 0; } -#if 0 /* FIXME: pc is in mach-specific struct */ - /* FIXME: watchpoints code shouldn't need this */ - { - SIM_CPU *current_cpu = STATE_CPU (sd, 0); - STATE_WATCHPOINTS (sd)->pc = &(PC); - } -#endif - if (sim_pre_argv_init (sd, argv[0]) != SIM_RC_OK) { free_state (sd); |