From 689cc2ae8dfc7931d24eb26fb518a31e8624fae4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 29 Mar 2012 21:27:28 +0000 Subject: [PATCH] 2012-03-29 Pedro Alves * linux-low.c (regsets_store_inferior_registers) [__sparc__]: Correct ptrace arguments. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8627aa9..63df5b0 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-03-29 Pedro Alves + + * linux-low.c (regsets_store_inferior_registers) [__sparc__]: + Correct ptrace arguments. + 2012-03-28 Pedro Alves * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index aea8d36..ab87570 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4036,7 +4036,7 @@ regsets_store_inferior_registers (struct regcache *regcache) #ifndef __sparc__ res = ptrace (regset->get_request, pid, nt_type, data); #else - res = ptrace (regset->get_request, pid, &iov, data); + res = ptrace (regset->get_request, pid, data, nt_type); #endif if (res == 0) -- 2.7.4