diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-09-13 21:48:31 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-09-18 17:26:07 +0100 |
commit | e163628395d40485c3b379fa39bdc211ee19d40b (patch) | |
tree | 2e037263e3a38a783b4f41812fcee0e99d9b06f7 /multilib.am | |
parent | d3483b43ff12afe3db2bed7184b7113cbaa358a5 (diff) | |
download | gdb-e163628395d40485c3b379fa39bdc211ee19d40b.zip gdb-e163628395d40485c3b379fa39bdc211ee19d40b.tar.gz gdb-e163628395d40485c3b379fa39bdc211ee19d40b.tar.bz2 |
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.
Diffstat (limited to 'multilib.am')
0 files changed, 0 insertions, 0 deletions