head 1.3; access; symbols pkgsrc-2014Q4:1.2.0.64 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.62 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.60 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.58 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.56 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.54 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.52 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.50 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.48 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.46 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.44 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.42 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.40 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.38 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.36 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.34 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.32 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.30 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.28 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.26 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.24 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.22 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.20 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.18 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.16 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.14 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.12 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.10 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.8 pkgsrc-2008Q1:1.2.0.6 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.4 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.2 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.1.0.12 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.10 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.8 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.6 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.4 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.2 pkgsrc-2006Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2015.03.15.14.56.46; author bsiegert; state dead; branches; next 1.2; commitid VL4agd9m2RVuiIdy; 1.2 date 2007.07.11.13.12.01; author lkundrak; state Exp; branches; next 1.1; 1.1 date 2006.02.27.15.45.29; author joerg; state Exp; branches 1.1.12.1; next ; 1.1.12.1 date 2007.07.28.22.57.12; author ghen; state Exp; branches; next ; desc @@ 1.3 log @Move wip/gdb (version 7.9) over the 5.x version that has been here for a long time and that does not even support amd64. The old gdb version, for those with a penchant for historic software, can be found as devel/gdb5. @ text @$NetBSD: patch-am,v 1.2 2007/07/11 13:12:01 lkundrak Exp $ --- gdb/i386bsd-nat.c.orig 2007-07-11 14:32:16.000000000 +0200 +++ gdb/i386bsd-nat.c @@@@ -395,7 +395,7 @@@@ _initialize_i386bsd_nat (void) system header files and sysctl(3) to get at the relevant information. */ -#if defined (__FreeBSD_version) && __FreeBSD_version >= 400011 +#if defined(__DragonFly__) || (defined (__FreeBSD_version) && __FreeBSD_version >= 400011) extern int i386fbsd4_sc_pc_offset; extern int i386fbsd4_sc_sp_offset; #define SC_PC_OFFSET i386fbsd4_sc_pc_offset @@@@ -419,26 +419,30 @@@@ _initialize_i386bsd_nat (void) /* Override the default value for the offset of the program counter in the sigcontext structure. */ - sc_pc_offset = offsetof (struct sigcontext, sc_pc); +#if defined(__DragonFly__) + sc_pc_offset = offsetof (ucontext_t, uc_mcontext.mc_eip); +#else + sc_pc_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_EIP]); +#endif if (SC_PC_OFFSET != sc_pc_offset) { - warning ("\ -offsetof (struct sigcontext, sc_pc) yields %d instead of %d.\n\ -Please report this to .", + warning ("sc_pc_offset is %d instead of %d.", sc_pc_offset, SC_PC_OFFSET); } SC_PC_OFFSET = sc_pc_offset; /* Likewise for the stack pointer. */ - sc_sp_offset = offsetof (struct sigcontext, sc_sp); +#if defined(__DragonFly__) + sc_sp_offset = offsetof (ucontext_t, uc_mcontext.mc_esp); +#else + sc_sp_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_UESP]); +#endif if (SC_SP_OFFSET != sc_sp_offset) { - warning ("\ -offsetof (struct sigcontext, sc_sp) yields %d instead of %d.\n\ -Please report this to .", + warning ("sc_sp_offset is %d instead of %d.", sc_sp_offset, SC_SP_OFFSET); } @ 1.2 log @Attempt to fix build on >1.6 @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1 2006/02/27 15:45:29 joerg Exp $ @ 1.1 log @Fix errno. Add DragonFly support. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- gdb/i386bsd-nat.c.orig 2006-02-27 14:51:46.000000000 +0000 d14 39 @ 1.1.12.1 log @Pullup ticket 2134 - requested by lkundrak security fix for gdb - pkgsrc/devel/gdb/Makefile 1.34 - pkgsrc/devel/gdb/distinfo 1.9-1.10 - pkgsrc/devel/gdb/patches/patch-am 1.2 - pkgsrc/devel/gdb/patches/patch-ap 1.1 - pkgsrc/devel/gdb/patches/patch-aq 1.1 Module Name: pkgsrc Committed By: lkundrak Date: Tue Jul 3 12:41:19 UTC 2007 Modified Files: pkgsrc/devel/gdb: Makefile distinfo Added Files: pkgsrc/devel/gdb/patches: patch-ap patch-aq Log Message: Fixes for CVE-2005-1704 and CVE-2005-1705. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: lkundrak Date: Wed Jul 11 13:12:02 UTC 2007 Modified Files: pkgsrc/devel/gdb: distinfo pkgsrc/devel/gdb/patches: patch-am Log Message: Attempt to fix build on >1.6 @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1 2006/02/27 15:45:29 joerg Exp $ d3 1 a3 1 --- gdb/i386bsd-nat.c.orig 2007-07-11 14:32:16.000000000 +0200 a13 39 @@@@ -419,26 +419,30 @@@@ _initialize_i386bsd_nat (void) /* Override the default value for the offset of the program counter in the sigcontext structure. */ - sc_pc_offset = offsetof (struct sigcontext, sc_pc); +#if defined(__DragonFly__) + sc_pc_offset = offsetof (ucontext_t, uc_mcontext.mc_eip); +#else + sc_pc_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_EIP]); +#endif if (SC_PC_OFFSET != sc_pc_offset) { - warning ("\ -offsetof (struct sigcontext, sc_pc) yields %d instead of %d.\n\ -Please report this to .", + warning ("sc_pc_offset is %d instead of %d.", sc_pc_offset, SC_PC_OFFSET); } SC_PC_OFFSET = sc_pc_offset; /* Likewise for the stack pointer. */ - sc_sp_offset = offsetof (struct sigcontext, sc_sp); +#if defined(__DragonFly__) + sc_sp_offset = offsetof (ucontext_t, uc_mcontext.mc_esp); +#else + sc_sp_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_UESP]); +#endif if (SC_SP_OFFSET != sc_sp_offset) { - warning ("\ -offsetof (struct sigcontext, sc_sp) yields %d instead of %d.\n\ -Please report this to .", + warning ("sc_sp_offset is %d instead of %d.", sc_sp_offset, SC_SP_OFFSET); } @