pkgsrc-WIP-changes archive

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

gdb-netbsd: Drop unneded local patch



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Mar 14 14:23:45 2020 +0100
Changeset:	1e71d8b03a1035251b47edbfb554a542b49edf39

Modified Files:
	gdb-netbsd/distinfo
Removed Files:
	gdb-netbsd/patches/patch-gdb_x86-bsd-nat.c

Log Message:
gdb-netbsd: Drop unneded local patch

Issue fixed upstream:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=013f99f035c49b000ca058db80ad15e00aa330dc

commit 013f99f035c49b000ca058db80ad15e00aa330dc
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date:   Sat Mar 14 14:17:16 2020 +0100

    Add support for NetBSD threads in x86-bsd-nat.c

    NetBSD ptrace(2) PT_GETDBREGS/PT_SETDBREGS accepts thread id (LWP)
    as the 4th argument for threads.

    gdb/ChangeLog:

            * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
            it to the ptrace call.
            * x86-bsd-nat.c (x86bsd_dr_set): Likewise.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e71d8b03a1035251b47edbfb554a542b49edf39

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_x86-bsd-nat.c | 31 ------------------------------
 2 files changed, 32 deletions(-)

diffs:
diff --git a/gdb-netbsd/distinfo b/gdb-netbsd/distinfo
index b83d8001f4..4d26a2258c 100644
--- a/gdb-netbsd/distinfo
+++ b/gdb-netbsd/distinfo
@@ -73,6 +73,5 @@ SHA1 (patch-gdb_sparc64-nbsd-nat.c) = d7b9988c09f483d9d57dccc36610cb52751dac0b
 SHA1 (patch-gdb_sparc64-nbsd-tdep.c) = 1e4562ab7f7a2c8b61b2becc70c9d6aa35140598
 SHA1 (patch-gdb_tui_tui-winsource.c) = fc0eb13c8c367bed20630921a6bacce186a80fd8
 SHA1 (patch-gdb_user-regs.c) = ced798a4bb8765193bbde67811cea5b98e41d56f
-SHA1 (patch-gdb_x86-bsd-nat.c) = 615cbfb2b8b00a79fe94b2538d1b1dfc404b3262
 SHA1 (patch-libiberty_make-temp-file.c) = 6e5c3fc9dde722a263cdbe3d51a714538a0c6cd1
 SHA1 (patch-sim_common_callback.c) = ac55e639ed6ba51c5daef5fffccc3413abeb1df2
diff --git a/gdb-netbsd/patches/patch-gdb_x86-bsd-nat.c b/gdb-netbsd/patches/patch-gdb_x86-bsd-nat.c
deleted file mode 100644
index 7332e37d89..0000000000
--- a/gdb-netbsd/patches/patch-gdb_x86-bsd-nat.c
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD$
-
---- gdb/x86-bsd-nat.c.orig	2019-07-16 00:00:27.000000000 +0000
-+++ gdb/x86-bsd-nat.c
-@@ -58,7 +58,7 @@ x86bsd_dr_get (ptid_t ptid, int regnum)
-   struct dbreg dbregs;
- 
-   if (ptrace (PT_GETDBREGS, get_ptrace_pid (inferior_ptid),
--	      (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+	      (PTRACE_TYPE_ARG3) &dbregs, inferior_ptid.lwp ()) == -1)
-     perror_with_name (_("Couldn't read debug registers"));
- 
-   return DBREG_DRX ((&dbregs), regnum);
-@@ -70,7 +70,7 @@ x86bsd_dr_set (int regnum, unsigned long
-   struct dbreg dbregs;
- 
-   if (ptrace (PT_GETDBREGS, get_ptrace_pid (inferior_ptid),
--              (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+              (PTRACE_TYPE_ARG3) &dbregs, inferior_ptid.lwp ()) == -1)
-     perror_with_name (_("Couldn't get debug registers"));
- 
-   /* For some mysterious reason, some of the reserved bits in the
-@@ -83,7 +83,7 @@ x86bsd_dr_set (int regnum, unsigned long
-   for (thread_info *thread : current_inferior ()->non_exited_threads ())
-     {
-       if (ptrace (PT_SETDBREGS, get_ptrace_pid (thread->ptid),
--		  (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+		  (PTRACE_TYPE_ARG3) &dbregs, thread->ptid.lwp ()) == -1)
- 	perror_with_name (_("Couldn't write debug registers"));
-     }
- }


Home | Main Index | Thread Index | Old Index