pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gdb-netbsd: Drop local vax patches
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sat Mar 14 13:54:34 2020 +0100
Changeset: 75776340df33224e3f6f050b6b63b0d47a30ff68
Modified Files:
gdb-netbsd/distinfo
Removed Files:
gdb-netbsd/patches/patch-gdb_vax-bsd-nat.c
Log Message:
gdb-netbsd: Drop local vax patches
All vax support is implemented upstream.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6227b330d563add042066259e5f933c89a85b3b5
commit 6227b330d563add042066259e5f933c89a85b3b5
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date: Sat Mar 14 13:38:30 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.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=12753073036aad1250b5e9a1bd6991c125150269
commit 12753073036aad1250b5e9a1bd6991c125150269
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date: Sat Mar 14 13:33:14 2020 +0100
Add explicit cast to fix build of vax-bsd-nat.c
gdb/ChangeLog:
* vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *.
* vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d5be5fa4207da00d039a1d5a040ba316e7092cbd
commit d5be5fa4207da00d039a1d5a040ba316e7092cbd
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date: Sat Mar 14 13:21:58 2020 +0100
Inherit vax_bsd_nat_target from nbsd_nat_target
gdb/ChangeLog:
* vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
instead of inf_ptrace_target.
* vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
nbsd_nat_target.
Przetumacz wiadomo
Wycz dla nastpujcego jzyka: angielski
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=25567eeece4efdea99a9a2b3a6daf81ec31b4b07
commit 25567eeece4efdea99a9a2b3a6daf81ec31b4b07
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date: Sat Mar 14 12:20:01 2020 +0100
Define _KERNTYPES in vax-bsd-nat.c
Fixes build on NetBSD. types.h does not define register_t by default.
gdb/ChangeLog:
* vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
register_t. for your changes. Lines starting
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=75776340df33224e3f6f050b6b63b0d47a30ff68
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_vax-bsd-nat.c | 80 ------------------------------
2 files changed, 81 deletions(-)
diffs:
diff --git a/gdb-netbsd/distinfo b/gdb-netbsd/distinfo
index 112d2160c0..b83d8001f4 100644
--- a/gdb-netbsd/distinfo
+++ b/gdb-netbsd/distinfo
@@ -73,7 +73,6 @@ 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_vax-bsd-nat.c) = 999589c89a2db8a4b38435aa6e9263e72791f60c
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_vax-bsd-nat.c b/gdb-netbsd/patches/patch-gdb_vax-bsd-nat.c
deleted file mode 100644
index c5a22f2db8..0000000000
--- a/gdb-netbsd/patches/patch-gdb_vax-bsd-nat.c
+++ /dev/null
@@ -1,80 +0,0 @@
-$NetBSD$
-
---- gdb/vax-bsd-nat.c.orig 2019-07-16 00:00:27.000000000 +0000
-+++ gdb/vax-bsd-nat.c
-@@ -17,6 +17,9 @@
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-+#ifndef _KERNTYPES
-+#define _KERNTYPES
-+#endif
- #include "defs.h"
- #include "inferior.h"
- #include "regcache.h"
-@@ -29,7 +32,13 @@
- #include "vax-tdep.h"
- #include "inf-ptrace.h"
-
-+#ifdef __NetBSD__
-+#include "nbsd-nat.h"
-+struct vax_bsd_nat_target final : public nbsd_nat_target
-+#else
- struct vax_bsd_nat_target final : public inf_ptrace_target
-+#endif
-+
- {
- void fetch_registers (struct regcache *, int) override;
- void store_registers (struct regcache *, int) override;
-@@ -42,7 +51,7 @@ static vax_bsd_nat_target the_vax_bsd_na
- static void
- vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs)
- {
-- const gdb_byte *regs = gregs;
-+ const gdb_byte *regs = (const gdb_byte *)gregs;
- int regnum;
-
- for (regnum = 0; regnum < VAX_NUM_REGS; regnum++)
-@@ -56,7 +65,7 @@ static void
- vaxbsd_collect_gregset (const struct regcache *regcache,
- void *gregs, int regnum)
- {
-- gdb_byte *regs = gregs;
-+ gdb_byte *regs = (gdb_byte *)gregs;
- int i;
-
- for (i = 0; i <= VAX_NUM_REGS; i++)
-@@ -74,9 +83,11 @@ void
- vax_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
- {
- struct reg regs;
-- pid_t pid = regcache->ptid ().pid ();
-+ ptid_t ptid = regcache->ptid ();
-+ pid_t pid = ptid.pid ();
-+ int lwp = 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);
-@@ -89,14 +100,16 @@ void
- vax_bsd_nat_target::store_registers (struct regcache *regcache, int regnum)
- {
- struct reg regs;
-- pid_t pid = regcache->ptid ().pid ();
-+ ptid_t ptid = regcache->ptid ();
-+ pid_t pid = ptid.pid ();
-+ int lwp = 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"));
- }
-
Home |
Main Index |
Thread Index |
Old Index