[RFA] gdb/gdbserver/linux-ppc-low.c: Wrong return value in ppc_cannot_store_register()
Daniel Jacobowitz
drow@false.org
Thu Jan 18 16:29:00 GMT 2007
On Thu, Jan 18, 2007 at 01:37:21PM +0100, Markus Deuling wrote:
> Hi,
>
> ppc_cannot_store_register() from linux-ppc-low.c returns 2 instead of 1.
> This seems to be broken. In linux-low.c:usr_store_inferior_registers()
> there is following comparison:
>
> if ((*the_low_target.cannot_store_register) (regno) == 1)
> return;
>
> This won't work with ppc low target. The patch returns 1 instead of 2.
That's the whole point - the return value of two exists to avoid that
check.
Why did you want this patch, i.e. does it fix a problem you
encountered?
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list