binutils-gdb/sim/m32r
Andrew Burgess e163628395 sim/m32r: return register sizes after fetch and store
The m32r simulator currently always returns -1 for the register size
after both a fetch and a store.  In the fetch case GDB is forgiving of
this, but in the store case GDB treats a return value of -1 as an
error.

This commit updates the m32r simulator to return a valid register size
when fetching or storing a register.  This fixes any GDB test that
writes to a register, which will include any GDB test that makes an
inferior call, for example gdb.base/break.exp.

sim/m32r/ChangeLog:

	* m32r.c (m32rbf_register_size): New function.
	(m32rbf_fetch_register): Use new function.
	(m32rbf_store_register): Likewise.
2020-09-18 17:26:07 +01:00
..
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
arch.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
arch.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ChangeLog sim/m32r: return register sizes after fetch and store 2020-09-18 17:26:07 +01:00
config.in Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
cpu2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpu2.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpu.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpu.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpuall.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpux.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpux.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decode2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decode2.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decode.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decode.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decodex.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decodex.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dv-m32r_cache.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dv-m32r_cache.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dv-m32r_uart.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dv-m32r_uart.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32r2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32r-sim.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32r.c sim/m32r: return register sizes after fetch and store 2020-09-18 17:26:07 +01:00
m32rx.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Makefile.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mloop2.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mloop.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mloopx.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
model2.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
model.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
modelx.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
README
sem2-switch.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sem-switch.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sem.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
semx-switch.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sim-if.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sim-main.h
syscall.h
traps-linux.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
traps.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00

This is the m32r simulator directory.

It is still work-in-progress.  The current sources are reasonably
well tested and lots of features are in.  However, there's lots
more yet to come.

There are lots of machine generated files in the source directory!
They are only generated if you configure with --enable-cgen-maint,
similar in behaviour to Makefile.in, configure under automake/autoconf.

For details on the generator, see ../../cgen.

devo/cgen isn't part of the comp-tools module yet.
You'll need to check it out manually (also akin to automake/autoconf).