8sa1-binutils-gdb/sim/common
Mike Frysinger d9b1deff13 sim: watch: add basic default handler that traps
The default watchpoint handler is NULL.  That means any port that
sets the STATE_WATCHPOINTS->pc field will crash if you try to use
the --watch options but don't configure the interrupt handler.  In
the past, you had to setup STATE_WATCHPOINTS->pc if you wanted to
support PC profiling, and while that was fixed a while ago, we have
a lot of ports who still configure it.

We already add a default set of interrupts (just "int") if the port
doesn't define any.  Let's also add a default handler that raises a
SIGTRAP.  When connected to gdb, this is a breakpoint which is what
people would expect.  When running standalone, it'll abort the sim,
but it's unclear whether there's anything better to do there.  This
really is just to make the watchpoint module more usable out of the
box for most ports with very little setup, at least inside of gdb.
2021-01-13 21:53:11 -05:00
..
acinclude.m4 sim: always call SIM_AC_OPTION_WARNINGS 2021-01-11 09:18:27 -05:00
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
callback.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
cgen-accfp.c sim/common: wire up new unordered comparisons 2019-06-13 21:27:10 +09:00
cgen-cpu.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-defs.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-engine.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-fpu.c
cgen-fpu.h sim/common: wire up new unordered comparisons 2019-06-13 21:27:10 +09:00
cgen-mem.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-ops.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-par.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
cgen-par.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-run.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-scache.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
cgen-scache.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-sim.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-trace.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
cgen-trace.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-types.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen-utils.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cgen.sh
ChangeLog sim: watch: add basic default handler that traps 2021-01-13 21:53:11 -05:00
configure Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
create-version.sh Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-cfi.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-cfi.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-core.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-glue.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
dv-pal.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
dv-sockser.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
dv-sockser.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdbinit.in
genmloop.sh Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gennltvals.sh sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
gentmap.c sim: drop targ-vals.def->nltvals.def indirection 2016-01-10 04:01:16 -05:00
gentvals.sh
hw-alloc.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-alloc.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-base.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-base.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-device.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-device.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-events.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-events.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-handles.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-handles.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-instances.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-instances.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-main.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-ports.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-ports.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-properties.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-properties.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
hw-tree.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-tree.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
Make-common.in sim: require a C11 compiler 2021-01-08 15:45:42 -05:00
Makefile.in Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nltvals.def sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
nrun.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
run.1 Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-abort.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
sim-alu.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-arange.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-arange.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-assert.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-base.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-basics.h sim: common: clean up asprintf includes a bit 2021-01-09 09:32:34 -05:00
sim-bits.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-bits.h sim: common: add align_{up,down} to match gdb 2021-01-02 20:55:21 -05:00
sim-close.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-command.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-config.c sim: common: use sim_config_print name 2021-01-04 18:10:40 -05:00
sim-config.h sim: common: use sim_config_print name 2021-01-04 18:10:40 -05:00
sim-core.c sim: common: fix printf formats 2021-01-11 08:27:40 -05:00
sim-core.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-cpu.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-cpu.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-endian.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-endian.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-engine.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-engine.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-events.c sim: watch: fix pc watchpoints on little endian host systems 2021-01-13 05:52:51 -05:00
sim-events.h sim: watch: fix pc watchpoints on little endian host systems 2021-01-13 05:52:51 -05:00
sim-fpu.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-fpu.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-hload.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-hrw.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-hw.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-hw.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-info.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-inline.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-inline.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-io.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-io.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-load.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-memopt.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-memopt.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-model.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-model.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-module.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-module.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-n-bits.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-n-core.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-n-endian.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-options.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-options.h sim: common: add a version output helper w/copyright+license info 2021-01-04 17:41:23 -05:00
sim-profile.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-profile.h sim: common: use #error properly 2021-01-12 03:51:44 -05:00
sim-reason.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-reg.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-resume.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-run.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-signal.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-signal.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-stop.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-syscall.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-syscall.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-trace.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-trace.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-types.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-utils.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-utils.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-watch.c sim: watch: add basic default handler that traps 2021-01-13 21:53:11 -05:00
sim-watch.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
syscall.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
version.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00