summaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2010-07-26 17:06:24 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2010-07-26 17:06:24 +0000
commit0237a5b0c0050cae462ce98c89b64cd92a95d75e (patch)
treeeec11d1bf385cbc9513c9fc76c81fea0937841f3 /gdb/ppc-linux-nat.c
parentb85b0aa3aeb0947ebeb409ec87f95dbd0a640f79 (diff)
downloadgdb-0237a5b0c0050cae462ce98c89b64cd92a95d75e.tar.gz
* ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
VSX registers contents.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index e8d96f617f0..18ddee79fcf 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -877,7 +877,7 @@ store_vsx_register (const struct regcache *regcache, int tid, int regno)
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
int vsxregsize = register_size (gdbarch, tdep->ppc_vsr0_upper_regnum);
- ret = ptrace (PTRACE_SETVSXREGS, tid, 0, &regs);
+ ret = ptrace (PTRACE_GETVSXREGS, tid, 0, &regs);
if (ret < 0)
{
if (errno == EIO)