Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [obv] [s390] gdbserver regcache compilation fix
@ 2010-01-21 19:29 Jan Kratochvil
  2010-01-21 22:21 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kratochvil @ 2010-01-21 19:29 UTC (permalink / raw)
  To: gdb-patches; +Cc: Pedro Alves

Hi Pedro,

checked-in this one as [obv] althought remains IMO-non-obv ppc:

linux-ppc-low.c: In function ‘ppc_arch_setup’:
linux-ppc-low.c:347: warning: passing argument 1 of ‘collect_register_by_name’ from incompatible pointer type
linux-ppc-low.c:347: warning: passing argument 2 of ‘collect_register_by_name’ from incompatible pointer type
linux-ppc-low.c:347: error: too few arguments to function ‘collect_register_by_name’


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2010-01/msg00193.html

--- src/gdb/gdbserver/ChangeLog	2010/01/21 18:35:42	1.324
+++ src/gdb/gdbserver/ChangeLog	2010/01/21 19:26:49	1.325
@@ -1,3 +1,8 @@
+2010-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* linux-s390-low.c (s390_collect_ptrace_register)
+	(s390_supply_ptrace_register): Adjust it for the new regcache parameter.
+
 2010-01-21  Doug Evans  <dje@google.com>
 
 	* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
--- src/gdb/gdbserver/linux-s390-low.c	2010/01/20 22:55:38	1.19
+++ src/gdb/gdbserver/linux-s390-low.c	2010/01/21 19:26:49	1.20
@@ -118,8 +118,9 @@
       if ((regno ^ 1) < the_low_target.num_regs
 	  && the_low_target.regmap[regno ^ 1] == regaddr)
 	{
-	  collect_register (regno & ~1, buf);
-	  collect_register ((regno & ~1) + 1, buf + sizeof (long) - size);
+	  collect_register (regcache, regno & ~1, buf);
+	  collect_register (regcache, (regno & ~1) + 1,
+			    buf + sizeof (long) - size);
 	}
       else if (regaddr == PT_PSWADDR
 	       || (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))
@@ -133,7 +134,7 @@
 	buf[size] |= 0x80;
     }
   else
-    collect_register (regno, buf);
+    collect_register (regcache, regno, buf);
 }
 
 static void
@@ -147,8 +148,9 @@
       if ((regno ^ 1) < the_low_target.num_regs
 	  && the_low_target.regmap[regno ^ 1] == regaddr)
 	{
-	  supply_register (regno & ~1, buf);
-	  supply_register ((regno & ~1) + 1, buf + sizeof (long) - size);
+	  supply_register (regcache, regno & ~1, buf);
+	  supply_register (regcache, (regno & ~1) + 1,
+			   buf + sizeof (long) - size);
 	}
       else if (regaddr == PT_PSWADDR
 	       || (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))


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

end of thread, other threads:[~2010-01-21 22:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 19:29 [obv] [s390] gdbserver regcache compilation fix Jan Kratochvil
2010-01-21 22:21 ` Pedro Alves

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