From 18f5de3bf843256607810db3753335f995bbcc97 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 21 Jan 2010 19:26:49 +0000 Subject: [PATCH] gdb/gdbserver/ * linux-s390-low.c (s390_collect_ptrace_register) (s390_supply_ptrace_register): Adjust it for the new regcache parameter. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-s390-low.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 25d074771fa..fead2ddcc02 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2010-01-21 Jan Kratochvil + + * linux-s390-low.c (s390_collect_ptrace_register) + (s390_supply_ptrace_register): Adjust it for the new regcache parameter. + 2010-01-21 Doug Evans * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c index 4cbce064785..5460f571646 100644 --- a/gdb/gdbserver/linux-s390-low.c +++ b/gdb/gdbserver/linux-s390-low.c @@ -118,8 +118,9 @@ s390_collect_ptrace_register (struct regcache *regcache, int regno, char *buf) 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 @@ s390_collect_ptrace_register (struct regcache *regcache, int regno, char *buf) buf[size] |= 0x80; } else - collect_register (regno, buf); + collect_register (regcache, regno, buf); } static void @@ -147,8 +148,9 @@ s390_supply_ptrace_register (struct regcache *regcache, int regno, const char *b 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)) -- 2.30.2