2012-03-29 Pedro Alves <palves@redhat.com>

* linux-low.c (regsets_store_inferior_registers) [__sparc__]:
	Correct ptrace arguments.
This commit is contained in:
Pedro Alves 2012-03-29 21:27:28 +00:00
parent 6c88661cd4
commit 689cc2ae8d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-03-29 Pedro Alves <palves@redhat.com>
* linux-low.c (regsets_store_inferior_registers) [__sparc__]:
Correct ptrace arguments.
2012-03-28 Pedro Alves <palves@redhat.com>
* linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.

View File

@ -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)