X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=sim%2Fppc%2Fgdb-sim.c;h=9041f7046d54807c962252419f2a2431d4e6afd5;hb=d009417cdb4f336be19f364ae71af101bebcb19d;hp=a8eaa08f783c4453a146938dc536dba7d286cb85;hpb=7cc46491b1832408d1d5472e3f0c17c8a1d78ccb;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/ppc/gdb-sim.c b/sim/ppc/gdb-sim.c index a8eaa08f78..9041f7046d 100644 --- a/sim/ppc/gdb-sim.c +++ b/sim/ppc/gdb-sim.c @@ -1,6 +1,7 @@ /* This file is part of GDB. - Copyright 2004, 2007 Free Software Foundation, Inc. + Copyright 2004, 2007, 2008, 2009, 2010, 2011 + Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1289,7 +1290,7 @@ sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length) const char *regname = regnum2name (regno); if (simulator == NULL || regname == NULL) - return -1; + return 0; TRACE(trace_gdb, ("sim_store_register(regno=%d(%s), buf=0x%lx)\n", regno, regname, (long)buf));