From 9fe70b4fe2ead9bc8782751ae9fb2b808bcc8f58 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Mon, 26 Jul 2010 17:06:26 +0000 Subject: [PATCH] * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get VSX registers contents. --- gdb/ChangeLog | 5 +++++ gdb/ppc-linux-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a80f1cce831..b9a411a8ab2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-07-26 Thiago Jung Bauermann + + * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get + VSX registers contents. + 2010-07-26 Jerome Guitton * dwarf2read.c (add_partial_symbol): Do not add a global variable if 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, ®s); + ret = ptrace (PTRACE_GETVSXREGS, tid, 0, ®s); if (ret < 0) { if (errno == EIO) -- 2.30.2