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
callback.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
cgen-accfp.c
cgen-cpu.h
cgen-defs.h
cgen-engine.h
cgen-fpu.c
cgen-fpu.h
cgen-mem.h
cgen-ops.h
cgen-par.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
cgen-par.h
cgen-run.c
cgen-scache.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
cgen-scache.h
cgen-sim.h
cgen-trace.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
cgen-trace.h
cgen-types.h
cgen-utils.c
cgen.sh
ChangeLog sim: watch: add basic default handler that traps 2021-01-13 21:53:11 -05:00
configure
configure.ac
create-version.sh
dv-cfi.c
dv-cfi.h
dv-core.c
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
gdbinit.in
genmloop.sh
gennltvals.sh
gentmap.c
gentvals.sh
hw-alloc.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-alloc.h
hw-base.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-base.h
hw-device.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-device.h
hw-events.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-events.h
hw-handles.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-handles.h
hw-instances.c
hw-instances.h
hw-main.h
hw-ports.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-ports.h
hw-properties.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-properties.h
hw-tree.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
hw-tree.h
Make-common.in sim: require a C11 compiler 2021-01-08 15:45:42 -05:00
Makefile.in
nltvals.def
nrun.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
run.1
sim-abort.c sim: common: add missing stdlib.h for abort() 2021-01-09 02:45:14 -05:00
sim-alu.h
sim-arange.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-arange.h
sim-assert.h
sim-base.h
sim-basics.h sim: common: clean up asprintf includes a bit 2021-01-09 09:32:34 -05:00
sim-bits.c
sim-bits.h sim: common: add align_{up,down} to match gdb 2021-01-02 20:55:21 -05:00
sim-close.c
sim-command.c
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
sim-cpu.c
sim-cpu.h
sim-endian.c
sim-endian.h
sim-engine.c
sim-engine.h
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
sim-hload.c
sim-hrw.c
sim-hw.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-hw.h
sim-info.c
sim-inline.c
sim-inline.h
sim-io.c
sim-io.h
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
sim-model.c
sim-model.h
sim-module.c
sim-module.h
sim-n-bits.h
sim-n-core.h
sim-n-endian.h
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
sim-reg.c
sim-resume.c
sim-run.c
sim-signal.c
sim-signal.h
sim-stop.c
sim-syscall.c
sim-syscall.h
sim-trace.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-trace.h
sim-types.h
sim-utils.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
sim-utils.h
sim-watch.c sim: watch: add basic default handler that traps 2021-01-13 21:53:11 -05:00
sim-watch.h
syscall.c sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
version.h