pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/gdb



Module Name:    pkgsrc
Committed By:   kamil
Date:           Sat Feb 18 17:43:37 UTC 2017

Modified Files:
        pkgsrc/devel/gdb: distinfo
Added Files:
        pkgsrc/devel/gdb/patches: patch-gdb_amd64bsd-nat.c

Log Message:
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>


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/devel/gdb/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/gdb/patches/patch-gdb_amd64bsd-nat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/gdb/distinfo
diff -u pkgsrc/devel/gdb/distinfo:1.27 pkgsrc/devel/gdb/distinfo:1.28
--- pkgsrc/devel/gdb/distinfo:1.27      Thu Apr 14 08:40:44 2016
+++ pkgsrc/devel/gdb/distinfo   Sat Feb 18 17:43:37 2017
@@ -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 @@ SHA512 (gdb-7.11.tar.gz) = 6854774bba73e
 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

Added files:

Index: pkgsrc/devel/gdb/patches/patch-gdb_amd64bsd-nat.c
diff -u /dev/null pkgsrc/devel/gdb/patches/patch-gdb_amd64bsd-nat.c:1.1
--- /dev/null   Sat Feb 18 17:43:37 2017
+++ pkgsrc/devel/gdb/patches/patch-gdb_amd64bsd-nat.c   Sat Feb 18 17:43:37 2017
@@ -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