diff options
author | aburgess <aburgess> | 2011-01-11 14:19:27 +0000 |
---|---|---|
committer | aburgess <aburgess> | 2011-01-11 14:19:27 +0000 |
commit | 5a26f459fc426a89e68d9e14d3672c2a8c67b15a (patch) | |
tree | 91aedea377730d666318d46468d95d6563e34b35 /include/gdb | |
parent | b83c685cd25409cd1f384da01d3cd426b2efdbe3 (diff) | |
download | gdb-5a26f459fc426a89e68d9e14d3672c2a8c67b15a.tar.gz |
http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html
gdb/ChangeLog
* remote-sim.c (gdbsim_store_register): Update API to
sim_store_register to check more error conditions.
include/gdb/ChangeLog
* remote-sim.h (sim_store_register): Update the API
documentation for this function.
sim/erc32/ChangeLog
sim/h8300/ChangeLog
sim/m32c/ChangeLog
sim/mn10300/ChangeLog
sim/ppc/ChangeLog
sim/rx/ChangeLog
sim/v850/ChangeLog
* ???.c (sim_store_register): Update return value to
match new API.
Diffstat (limited to 'include/gdb')
-rw-r--r-- | include/gdb/ChangeLog | 5 | ||||
-rw-r--r-- | include/gdb/remote-sim.h | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index 4e6b8521750..19509e22188 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-01-11 Andrew Burgess <aburgess@broadcom.com> + + * remote-sim.h (sim_store_register): Update the API + documentation for this function. + 2010-09-06 Pedro Alves <pedro@codesourcery.com> * signals.def: Replace all ANY uses by SET with specific numbers. diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h index 9c204525b75..a171cfda5b3 100644 --- a/include/gdb/remote-sim.h +++ b/include/gdb/remote-sim.h @@ -191,13 +191,15 @@ int sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length); /* Store register REGNO from the raw (target endian) value in BUF. - Return the actual size of the register or zero if REGNO is not - applicable. - Legacy implementations ignore LENGTH and always return -1. + Return the actual size of the register, any size not equal to + LENGTH indicates the register was not updated correctly. - If LENGTH does not match the size of REGNO no data is transfered - (the actual register size is still returned). */ + Return a LENGTH of -1 to indicate the register was not updated + and an error has occurred. + + Return a LENGTH of 0 to indicate the register was not updated + but no error has occurred. */ int sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length); |