mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-14 15:50:34 +00:00
gdb/gdbserver/
* linux-s390-low.c (s390_collect_ptrace_register) (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
This commit is contained in:
parent
14ce306570
commit
18f5de3bf8
@ -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>
|
2010-01-21 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
|
* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
|
||||||
|
@ -118,8 +118,9 @@ s390_collect_ptrace_register (struct regcache *regcache, int regno, char *buf)
|
|||||||
if ((regno ^ 1) < the_low_target.num_regs
|
if ((regno ^ 1) < the_low_target.num_regs
|
||||||
&& the_low_target.regmap[regno ^ 1] == regaddr)
|
&& the_low_target.regmap[regno ^ 1] == regaddr)
|
||||||
{
|
{
|
||||||
collect_register (regno & ~1, buf);
|
collect_register (regcache, regno & ~1, buf);
|
||||||
collect_register ((regno & ~1) + 1, buf + sizeof (long) - size);
|
collect_register (regcache, (regno & ~1) + 1,
|
||||||
|
buf + sizeof (long) - size);
|
||||||
}
|
}
|
||||||
else if (regaddr == PT_PSWADDR
|
else if (regaddr == PT_PSWADDR
|
||||||
|| (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))
|
|| (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))
|
||||||
@ -133,7 +134,7 @@ s390_collect_ptrace_register (struct regcache *regcache, int regno, char *buf)
|
|||||||
buf[size] |= 0x80;
|
buf[size] |= 0x80;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
collect_register (regno, buf);
|
collect_register (regcache, regno, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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
|
if ((regno ^ 1) < the_low_target.num_regs
|
||||||
&& the_low_target.regmap[regno ^ 1] == regaddr)
|
&& the_low_target.regmap[regno ^ 1] == regaddr)
|
||||||
{
|
{
|
||||||
supply_register (regno & ~1, buf);
|
supply_register (regcache, regno & ~1, buf);
|
||||||
supply_register ((regno & ~1) + 1, buf + sizeof (long) - size);
|
supply_register (regcache, (regno & ~1) + 1,
|
||||||
|
buf + sizeof (long) - size);
|
||||||
}
|
}
|
||||||
else if (regaddr == PT_PSWADDR
|
else if (regaddr == PT_PSWADDR
|
||||||
|| (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))
|
|| (regaddr >= PT_GPR0 && regaddr <= PT_GPR15))
|
||||||
|
Loading…
Reference in New Issue
Block a user