From 336a349d1e37185f1d2c825aa97c2f1d5686825e Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 27 Aug 2004 15:44:04 +0000 Subject: Support building/use on FreeBSD 4.x. PR: 71011 Submitted by: Douglas Thrift --- devel/gdb6/Makefile | 4 +++- devel/gdb6/files/kvm-fbsd-alpha.h | 2 ++ devel/gdb6/files/kvm-fbsd-i386.h | 2 ++ devel/gdb66/Makefile | 4 +++- devel/gdb66/files/kvm-fbsd-alpha.h | 2 ++ devel/gdb66/files/kvm-fbsd-i386.h | 2 ++ 6 files changed, 14 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/gdb6/Makefile b/devel/gdb6/Makefile index 99f63b23a171..b555d0429bd9 100644 --- a/devel/gdb6/Makefile +++ b/devel/gdb6/Makefile @@ -35,7 +35,9 @@ CFLAGS+= -DRL_NO_COMPAT -DKGDB .include .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on 4.x" +USE_GCC?= 3.4 +LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline +CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib .endif .if ${ARCH} == "amd64" diff --git a/devel/gdb6/files/kvm-fbsd-alpha.h b/devel/gdb6/files/kvm-fbsd-alpha.h index 0ea5988bf058..4918912b6752 100644 --- a/devel/gdb6/files/kvm-fbsd-alpha.h +++ b/devel/gdb6/files/kvm-fbsd-alpha.h @@ -51,6 +51,7 @@ fetch_kcore_registers (struct pcb *pcbp) } +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -77,3 +78,4 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) return (this_saved_pc); } } +#endif // __FreeBSD_version >= 500032 diff --git a/devel/gdb6/files/kvm-fbsd-i386.h b/devel/gdb6/files/kvm-fbsd-i386.h index 0f9ba75a311a..e85fb1c695e2 100644 --- a/devel/gdb6/files/kvm-fbsd-i386.h +++ b/devel/gdb6/files/kvm-fbsd-i386.h @@ -56,6 +56,7 @@ ksym_maxuseraddr (void) but we don't think that's too important right now. */ enum frametype { tf_normal, tf_trap, tf_interrupt, tf_syscall }; +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -99,6 +100,7 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) #undef oEIP } } +#endif // __FreeBSD_version >= 500032 static void fetch_kcore_registers (struct pcb *pcb) diff --git a/devel/gdb66/Makefile b/devel/gdb66/Makefile index 99f63b23a171..b555d0429bd9 100644 --- a/devel/gdb66/Makefile +++ b/devel/gdb66/Makefile @@ -35,7 +35,9 @@ CFLAGS+= -DRL_NO_COMPAT -DKGDB .include .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on 4.x" +USE_GCC?= 3.4 +LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline +CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib .endif .if ${ARCH} == "amd64" diff --git a/devel/gdb66/files/kvm-fbsd-alpha.h b/devel/gdb66/files/kvm-fbsd-alpha.h index 0ea5988bf058..4918912b6752 100644 --- a/devel/gdb66/files/kvm-fbsd-alpha.h +++ b/devel/gdb66/files/kvm-fbsd-alpha.h @@ -51,6 +51,7 @@ fetch_kcore_registers (struct pcb *pcbp) } +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -77,3 +78,4 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) return (this_saved_pc); } } +#endif // __FreeBSD_version >= 500032 diff --git a/devel/gdb66/files/kvm-fbsd-i386.h b/devel/gdb66/files/kvm-fbsd-i386.h index 0f9ba75a311a..e85fb1c695e2 100644 --- a/devel/gdb66/files/kvm-fbsd-i386.h +++ b/devel/gdb66/files/kvm-fbsd-i386.h @@ -56,6 +56,7 @@ ksym_maxuseraddr (void) but we don't think that's too important right now. */ enum frametype { tf_normal, tf_trap, tf_interrupt, tf_syscall }; +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -99,6 +100,7 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) #undef oEIP } } +#endif // __FreeBSD_version >= 500032 static void fetch_kcore_registers (struct pcb *pcb) -- cgit