public inbox for gdb-testers@sourceware.org help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Subject: [binutils-gdb] Add support for threads in vax_bsd_nat_target Date: Sun, 29 Mar 2020 17:03:51 -0400 [thread overview] Message-ID: <6227b330d563add042066259e5f933c89a85b3b5@gdb-build> (raw) *** TEST RESULTS FOR COMMIT 6227b330d563add042066259e5f933c89a85b3b5 *** commit 6227b330d563add042066259e5f933c89a85b3b5 Author: Kamil Rytarowski <n54@gmx.com> AuthorDate: Sat Mar 14 13:38:30 2020 +0100 Commit: Kamil Rytarowski <n54@gmx.com> CommitDate: Sat Mar 14 13:51:14 2020 +0100 Add support for threads in vax_bsd_nat_target ptrace(2) PT_GETREGS/PT_SETREGS accepts thread id (LWP) as the 4th argument for threads. gdb/ChangeLog: * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass it to the ptrace call. * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c148626b33..34212357c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,13 @@ 2020-03-14 Kamil Rytarowski <n54@gmx.com> - * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *. + * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass + it to the ptrace call. + * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. + +2020-03-14 Kamil Rytarowski <n54@gmx.com> + + * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const + gdb_byte *. * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. 2020-03-14 Kamil Rytarowski <n54@gmx.com> diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 9b1351d9b1..1ca1f7bb1e 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-nat.c @@ -78,8 +78,9 @@ vax_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum) { struct reg regs; pid_t pid = regcache->ptid ().pid (); + int lwp = regcache->ptid ().lwp (); - if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) + if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) perror_with_name (_("Couldn't get registers")); vaxbsd_supply_gregset (regcache, ®s); @@ -93,13 +94,14 @@ vax_bsd_nat_target::store_registers (struct regcache *regcache, int regnum) { struct reg regs; pid_t pid = regcache->ptid ().pid (); + int lwp = regcache->ptid ().lwp (); - if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) + if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) perror_with_name (_("Couldn't get registers")); vaxbsd_collect_gregset (regcache, ®s, regnum); - if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) + if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) perror_with_name (_("Couldn't write registers")); } \f
next reply other threads:[~2020-03-29 21:03 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-29 21:03 gdb-buildbot [this message] 2020-03-29 21:03 ` Failures on Fedora-i686, branch master gdb-buildbot 2020-03-29 21:37 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot 2020-03-29 21:55 ` Failures on Fedora-x86_64-m32, " gdb-buildbot 2020-03-29 22:08 ` Failures on Fedora-x86_64-m64, " gdb-buildbot 2020-03-29 22:42 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot 2020-03-29 22:48 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot 2020-04-02 5:13 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot 2020-04-02 8:43 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot 2020-04-03 4:08 ` Failures on Ubuntu-Aarch64-m64, " gdb-buildbot 2020-04-03 4:25 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot 2020-04-03 6:14 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=6227b330d563add042066259e5f933c89a85b3b5@gdb-build \ --to=gdb-buildbot@sergiodj.net \ --cc=gdb-testers@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).