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 pass the lwp for the register calls.



details:   https://anonhg.NetBSD.org/src/rev/5ea9f2352f74
branches:  trunk
changeset: 828792:5ea9f2352f74
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 01 16:28:14 2018 +0000

description:
pass the lwp for the register calls.

diffstat:

 external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 64e37f1e85e0 -r 5ea9f2352f74 external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c        Mon Jan 01 16:14:30 2018 +0000
+++ b/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c        Mon Jan 01 16:28:14 2018 +0000
@@ -92,7 +92,7 @@
       struct reg gregs;
 
       if (ptrace (PT_GETREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                 (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get registers"));
 
       alphabsd_supply_reg (regcache, (char *) &gregs, regno);
@@ -106,7 +106,7 @@
       struct fpreg fpregs;
 
       if (ptrace (PT_GETFPREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get floating point status"));
 
       alphabsd_supply_fpreg (regcache, (char *) &fpregs, regno);
@@ -124,13 +124,13 @@
     {
       struct reg gregs;
       if (ptrace (PT_GETREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                  (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
+                  (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1)
         perror_with_name (_("Couldn't get registers"));
 
       alphabsd_fill_reg (regcache, (char *) &gregs, regno);
 
       if (ptrace (PT_SETREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                  (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
+                  (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1)
         perror_with_name (_("Couldn't write registers"));
 
       if (regno != -1)
@@ -143,13 +143,13 @@
       struct fpreg fpregs;
 
       if (ptrace (PT_GETFPREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't get floating point status"));
 
       alphabsd_fill_fpreg (regcache, (char *) &fpregs, regno);
 
       if (ptrace (PT_SETFPREGS, ptid_get_pid (regcache_get_ptid (regcache)),
-                 (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
+                 (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1)
        perror_with_name (_("Couldn't write floating point status"));
     }
 }



Home | Main Index | Thread Index | Old Index