pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gdb-netbsd: Drop patches/patch-gdb_sparc-nat.c
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Mar 17 13:16:45 2020 +0100
Changeset: 4c19d72ed83be818834b722630e557ca558b353f
Modified Files:
gdb-netbsd/distinfo
Removed Files:
gdb-netbsd/patches/patch-gdb_sparc-nat.c
Log Message:
gdb-netbsd: Drop patches/patch-gdb_sparc-nat.c
Proper patch pending upstream.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4c19d72ed83be818834b722630e557ca558b353f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gdb-netbsd/distinfo | 1 -
gdb-netbsd/patches/patch-gdb_sparc-nat.c | 80 --------------------------------
2 files changed, 81 deletions(-)
diffs:
diff --git a/gdb-netbsd/distinfo b/gdb-netbsd/distinfo
index 7a87986330..308e008bb0 100644
--- a/gdb-netbsd/distinfo
+++ b/gdb-netbsd/distinfo
@@ -57,7 +57,6 @@ SHA1 (patch-gdb_regformats_regdef.h) = a126d2537ade44f669a7a6bcd59dcd89188554d1
SHA1 (patch-gdb_sh-nbsd-nat.c) = f316feea0192b6926ebe01d0fc83effe632ae063
SHA1 (patch-gdb_sh-nbsd-tdep.c) = 868d765ebf6c2d4dfb1319653c9312da1ce45a8e
SHA1 (patch-gdb_sh-nbsd-tdep.h) = 6dca499544ec3e95cd2c10a07926d1e80ab6d109
-SHA1 (patch-gdb_sparc-nat.c) = 31a214f01f734add664fba4a462bd9f8e8686c92
SHA1 (patch-gdb_sparc-nat.h) = 1a10f19afb13dd25eb0aef1486a48d8c6c4ac647
SHA1 (patch-gdb_sparc-nbsd-nat.c) = 4aa8d16cf1210125f9117680014f2d8eaa36e681
SHA1 (patch-gdb_sparc-nbsd-tdep.c) = c61b63a6673402852a2e95b06d382b8eda1653e9
diff --git a/gdb-netbsd/patches/patch-gdb_sparc-nat.c b/gdb-netbsd/patches/patch-gdb_sparc-nat.c
deleted file mode 100644
index c8810537d5..0000000000
--- a/gdb-netbsd/patches/patch-gdb_sparc-nat.c
+++ /dev/null
@@ -1,80 +0,0 @@
-$NetBSD$
-
---- gdb/sparc-nat.c.orig 2019-07-16 00:00:27.000000000 +0000
-+++ gdb/sparc-nat.c
-@@ -138,6 +138,7 @@ sparc_fetch_inferior_registers (struct r
- {
- struct gdbarch *gdbarch = regcache->arch ();
- pid_t pid;
-+ int lwp = regcache->ptid ().lwp ();
-
- /* NOTE: cagney/2002-12-03: This code assumes that the currently
- selected light weight processes' registers can be written
-@@ -166,7 +167,7 @@ sparc_fetch_inferior_registers (struct r
- {
- gregset_t regs;
-
-- if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
-+ if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
- perror_with_name (_("Couldn't get registers"));
-
- sparc_supply_gregset (sparc_gregmap, regcache, -1, ®s);
-@@ -178,7 +179,7 @@ sparc_fetch_inferior_registers (struct r
- {
- fpregset_t fpregs;
-
-- if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-+ if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't get floating point status"));
-
- sparc_supply_fpregset (sparc_fpregmap, regcache, -1, &fpregs);
-@@ -190,6 +191,7 @@ sparc_store_inferior_registers (struct r
- {
- struct gdbarch *gdbarch = regcache->arch ();
- pid_t pid;
-+ int lwp = regcache->ptid ().lwp ();
-
- /* NOTE: cagney/2002-12-02: See comment in fetch_inferior_registers
- about threaded assumptions. */
-@@ -199,12 +201,12 @@ sparc_store_inferior_registers (struct r
- {
- gregset_t regs;
-
-- if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
-+ if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
- perror_with_name (_("Couldn't get registers"));
-
- sparc_collect_gregset (sparc_gregmap, regcache, regnum, ®s);
-
-- if (ptrace (PTRACE_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
-+ if (ptrace (PTRACE_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, inferior_ptid.lwp ()) == -1)
- perror_with_name (_("Couldn't write registers"));
-
- /* Deal with the stack regs. */
-@@ -225,7 +227,7 @@ sparc_store_inferior_registers (struct r
- {
- fpregset_t fpregs, saved_fpregs;
-
-- if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-+ if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't get floating-point registers"));
-
- memcpy (&saved_fpregs, &fpregs, sizeof (fpregs));
-@@ -238,7 +240,7 @@ sparc_store_inferior_registers (struct r
- if (memcmp (&saved_fpregs, &fpregs, sizeof (fpregs)) != 0)
- {
- if (ptrace (PTRACE_SETFPREGS, pid,
-- (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-+ (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't write floating-point registers"));
- }
-
-@@ -252,7 +254,7 @@ sparc_store_inferior_registers (struct r
- TARGET_OBJECT_WCOOKIE. Fetch StackGhost Per-Process XOR cookie. */
-
- enum target_xfer_status
--sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
-+sparc_xfer_wcookie (enum target_object object,
- const char *annex, gdb_byte *readbuf,
- const gdb_byte *writebuf, ULONGEST offset, ULONGEST len,
- ULONGEST *xfered_len)
Home |
Main Index |
Thread Index |
Old Index