Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb make this compile. now arm64 gdb...



details:   https://anonhg.NetBSD.org/src/rev/2c18c3ad4482
branches:  trunk
changeset: 451861:2c18c3ad4482
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jun 08 14:59:01 2019 +0000

description:
make this compile.  now arm64 gdb works again.  yay.

diffstat:

 external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r fa88b57a7b59 -r 2c18c3ad4482 external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c     Sat Jun 08 13:13:01 2019 +0000
+++ b/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c     Sat Jun 08 14:59:01 2019 +0000
@@ -59,7 +59,7 @@
 }
 
 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 @@
    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 @@
       regcache_collect_regset (&aarch64_nbsd_gregset, regcache,regnum, &regs,
                               sizeof (regs));
 
-      if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) &regs, tid) == -1)
+      if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) &regs, lwp) == -1)
        perror_with_name (_("Couldn't write registers"));
     }
 
@@ -118,13 +118,13 @@
     {
       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"));
     }
 }



Home | Main Index | Thread Index | Old Index