Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] gdb/gdbserver/linux-ppc-low.c: Wrong return value in ppc_cannot_store_register()
@ 2007-01-18 12:37 Markus Deuling
  2007-01-18 16:29 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Deuling @ 2007-01-18 12:37 UTC (permalink / raw)
  To: GDB Patches

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.

Is it ok to apply ?


ChangeLog:

        * linux-ppc-low.c (ppc_cannot_store_register): Return
        1 instead of 2.


====================================================

diff -urN src/gdb/gdbserver/linux-ppc-low.c dev/gdb/gdbserver/linux-ppc-low.c
--- src/gdb/gdbserver/linux-ppc-low.c   2007-01-10 15:48:11.000000000 +0100
+++ dev/gdb/gdbserver/linux-ppc-low.c   2007-01-18 13:27:50.000000000 +0100
@@ -53,7 +53,7 @@
 {
   /* Some kernels do not allow us to store fpscr.  */
   if (regno == find_regno ("fpscr"))
-    return 2;
+    return 1;

   return 0;
 }


Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-20  4:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-18 12:37 [RFA] gdb/gdbserver/linux-ppc-low.c: Wrong return value in ppc_cannot_store_register() Markus Deuling
2007-01-18 16:29 ` Daniel Jacobowitz
2007-01-19 11:27   ` Markus Deuling
2007-01-20  4:35     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox