Module Name: src
Committed By: mrg
Date: Sat Jun 8 14:59:01 UTC 2019
Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-nat.c
Log Message:
make this compile. now arm64 gdb works again. yay.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c:1.4 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c:1.5
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c:1.4 Thu May 30 01:19:36 2019
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c Sat Jun 8 14:59:01 2019
@@ -59,7 +59,7 @@ getfpregs_supplies (struct gdbarch *gdba
}
void
-aarch64_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno)
+aarch64_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
{
ptid_t ptid = regcache->ptid ();
pid_t pid = ptid.pid ();
@@ -93,7 +93,7 @@ aarch64_nbsd_nat_target::fetch_registers
this for all registers. */
void
-aarch64_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
+aarch64_nbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
{
ptid_t ptid = regcache->ptid ();
pid_t pid = ptid.pid ();
@@ -110,7 +110,7 @@ aarch64_nbsd_nat_target::store_registers
regcache_collect_regset (&aarch64_nbsd_gregset, regcache,regnum, ®s,
sizeof (regs));
- if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, tid) == -1)
+ if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
perror_with_name (_("Couldn't write registers"));
}
@@ -118,13 +118,13 @@ aarch64_nbsd_nat_target::store_registers
{
struct fpreg fpregs;
- if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, tid) == -1)
+ if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
perror_with_name (_("Couldn't get floating point status"));
regcache_collect_regset (&aarch64_nbsd_fpregset, regcache,regnum, &fpregs,
sizeof (fpregs));
- if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, tid) == -1)
+ if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
perror_with_name (_("Couldn't write floating point status"));
}
}