pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gdb Prepare gdb/amd64bsd-nat.c for Debug Registe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/36d3bf5c32c4
branches:  trunk
changeset: 358706:36d3bf5c32c4
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat Feb 18 17:43:37 2017 +0000

description:
Prepare gdb/amd64bsd-nat.c for Debug Registers (watchpoints) on NetBSD

Define DBREG_DRX when it's undefined to:
    #define        DBREG_DRX(d,x)  ((d)->dr[(x)])

This has been copied from FreeBSD:
/usr/include/x86/reg.h:#define  DBREG_DRX(d,x)  ((d)->dr[(x)])

No functional change for existing operating systems.

Sponsored by <The NetBSD Foundation>

diffstat:

 devel/gdb/distinfo                         |   3 ++-
 devel/gdb/patches/patch-gdb_amd64bsd-nat.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r c99bd4d8e87d -r 36d3bf5c32c4 devel/gdb/distinfo
--- a/devel/gdb/distinfo        Sat Feb 18 14:01:22 2017 +0000
+++ b/devel/gdb/distinfo        Sat Feb 18 17:43:37 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2016/04/14 08:40:44 fhajny Exp $
+$NetBSD: distinfo,v 1.28 2017/02/18 17:43:37 kamil Exp $
 
 SHA1 (gdb-7.11.tar.gz) = 99f5795cf670e00a623266cb4ce59cc76ec6e5a2
 RMD160 (gdb-7.11.tar.gz) = 9181c3a79dc676d36e58162567051cf9f68d354d
@@ -6,6 +6,7 @@
 Size (gdb-7.11.tar.gz) = 35215975 bytes
 SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
 SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535
+SHA1 (patch-gdb_amd64bsd-nat.c) = ce3a52c090bb83b91e87d0fff301ddb2eb2d3dfb
 SHA1 (patch-gdb_bsd-kvm.c) = 837614b107181f79fd5c018ebd76a9010e5ab602
 SHA1 (patch-gdb_ppcnbsd-nat.c) = 94c9f552fd00e3641e7a0fa8372de538b4571d0b
 SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
diff -r c99bd4d8e87d -r 36d3bf5c32c4 devel/gdb/patches/patch-gdb_amd64bsd-nat.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb/patches/patch-gdb_amd64bsd-nat.c        Sat Feb 18 17:43:37 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gdb_amd64bsd-nat.c,v 1.1 2017/02/18 17:43:37 kamil Exp $
+
+--- gdb/amd64bsd-nat.c.orig    2016-02-10 03:19:39.000000000 +0000
++++ gdb/amd64bsd-nat.c
+@@ -167,6 +167,10 @@ amd64bsd_target (void)
+ 
+ #ifdef HAVE_PT_GETDBREGS
+ 
++#ifndef DBREG_DRX
++#define       DBREG_DRX(d,x)  ((d)->dr[(x)])
++#endif
++
+ static unsigned long
+ amd64bsd_dr_get (ptid_t ptid, int regnum)
+ {



Home | Main Index | Thread Index | Old Index