30 Jul 2012 22:49
[RFC] arm sim: Adjust return values in sim_{fetch,store}_register
Kevin Buettner <kevinb <at> redhat.com>
2012-07-30 20:49:26 GMT
2012-07-30 20:49:26 GMT
The change, below, to sim_store_register() fixes the following GDB internal error for an arm-eabi target: remote-sim.c:531: internal-error: Register 14 not updated On the GDB side of things, remote-sim.c now requires that sim_store_register() return the length of the register being stored. (This requirement has been in place for quite a while now.) Returning a value less than zero triggers an internal error. Returning 0 triggers a warning. The change to sim_fetch_register() is not strictly required, though the comments in remote-sim.c suggests that return of -1 might be considered to be broken at some point too. The include of libiberty.h fixes a warning regarding xstrdup() that I noticed during a rebuild. I can post this separately if desired. Comments? Kevin sim/arm/ChangeLog: * wrapper.c (libiberty.h): Include. (sim_store_register, sim_fetch_register): On success, return length, instead of -1. Index: arm/wrapper.c ===================================================================(Continue reading)
RSS Feed