aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-21 19:26:49 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-21 19:26:49 +0000
commit18f5de3bf843256607810db3753335f995bbcc97 (patch)
treeb566f9743b05fd771a90b968681688098e755d9e /gdb
parent14ce306570a6af518693939b282b3338b1131f77 (diff)
downloadgdb-18f5de3bf843256607810db3753335f995bbcc97.zip
gdb-18f5de3bf843256607810db3753335f995bbcc97.tar.gz
gdb-18f5de3bf843256607810db3753335f995bbcc97.tar.bz2
gdb/gdbserver/
* linux-s390-low.c (s390_collect_ptrace_register) (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-s390-low.c12
2 files changed, 12 insertions, 5 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 25d0747..fead2dd 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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*.
diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c
index 4cbce06..5460f57 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))