aboutsummaryrefslogtreecommitdiff
path: root/include/gdb/remote-sim.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2011-01-11 14:19:34 +0000
committerAndrew Burgess <aburgess@broadcom.com>2011-01-11 14:19:34 +0000
commitdae477fed8cdd8063a79042f2781a983be1c728d (patch)
treed14a1dc5e9e404f027a4a5008f5d2fc8e8704a16 /include/gdb/remote-sim.h
parent7a88bc9c3dd8284dcd8f4222ec3524d146810884 (diff)
downloadgdb-dae477fed8cdd8063a79042f2781a983be1c728d.zip
gdb-dae477fed8cdd8063a79042f2781a983be1c728d.tar.gz
gdb-dae477fed8cdd8063a79042f2781a983be1c728d.tar.bz2
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/remote-sim.h')
-rw-r--r--include/gdb/remote-sim.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index 9c20452..a171cfd 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);