diff options
Diffstat (limited to 'devel/gdb6')
-rw-r--r-- | devel/gdb6/Makefile | 4 | ||||
-rw-r--r-- | devel/gdb6/files/kvm-fbsd-alpha.h | 2 | ||||
-rw-r--r-- | devel/gdb6/files/kvm-fbsd-i386.h | 2 |
3 files changed, 7 insertions, 1 deletions
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 <bsd.port.pre.mk> .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) |