forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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-04 Masaki Muranaka <monaka@monami-software.com>
|
||||
|
||||
* Makefile.in: Use CC_FOR_BUILD to build opc2c.
|
||||
|
||||
@@ -406,7 +406,7 @@ 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);
|
||||
|
||||
@@ -503,7 +503,7 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
|
||||
default:
|
||||
fprintf (stderr, "m32c minisim: unrecognized register number: %d\n",
|
||||
regno);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user