aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
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 /sim/rx
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 'sim/rx')
-rw-r--r--sim/rx/ChangeLog5
-rw-r--r--sim/rx/gdb-if.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 1f9866a..f29cb93 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-11 Andrew Burgess <aburgess@broadcom.com>
+
+ * gdb-if.c (sim_store_register): Update return value to
+ match new API.
+
2010-12-14 DJ Delorie <dj@redhat.com>
* rx.c (decode_opcode): For "MVFC PC,", use the address of the
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 8922228..ca41161 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -534,12 +534,12 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
check_desc (sd);
if (!check_regno (regno))
- return 0;
+ return -1;
size = reg_size (regno);
if (length != size)
- return 0;
+ return -1;
if (rx_big_endian)
val = get_be (buf, length);
@@ -630,7 +630,7 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
default:
fprintf (stderr, "rx minisim: unrecognized register number: %d\n",
regno);
- return -1;
+ return 0;
}
return size;