diff -ruN /usr/ports/devel/gdb6/Makefile gdb6/Makefile --- /usr/ports/devel/gdb6/Makefile Sun Aug 22 23:34:48 2004 +++ gdb6/Makefile Thu Aug 26 16:38:33 2004 @@ -35,7 +35,9 @@ .include .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on 4.x" +LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline +USE_GCC?=3.4 +CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib .endif .if ${ARCH} == "amd64" diff -ruN /usr/ports/devel/gdb6/files/kvm-fbsd-alpha.h gdb6/files/kvm-fbsd-alpha.h --- /usr/ports/devel/gdb6/files/kvm-fbsd-alpha.h Sun Jun 20 15:22:02 2004 +++ gdb6/files/kvm-fbsd-alpha.h Thu Aug 26 16:16:01 2004 @@ -50,7 +50,7 @@ deprecated_registers_fetched (); } - +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -77,3 +77,4 @@ return (this_saved_pc); } } +#endif diff -ruN /usr/ports/devel/gdb6/files/kvm-fbsd-amd64.h gdb6/files/kvm-fbsd-amd64.h --- /usr/ports/devel/gdb6/files/kvm-fbsd-amd64.h Mon Aug 23 16:12:31 2004 +++ gdb6/files/kvm-fbsd-amd64.h Thu Aug 26 16:16:54 2004 @@ -55,6 +55,7 @@ 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) { @@ -98,6 +99,7 @@ #undef oEIP } } +#endif static void fetch_kcore_registers (struct pcb *pcb) diff -ruN /usr/ports/devel/gdb6/files/kvm-fbsd-i386.h gdb6/files/kvm-fbsd-i386.h --- /usr/ports/devel/gdb6/files/kvm-fbsd-i386.h Mon Aug 23 16:12:31 2004 +++ gdb6/files/kvm-fbsd-i386.h Thu Aug 26 16:06:52 2004 @@ -56,6 +56,7 @@ 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 @@ #undef oEIP } } +#endif static void fetch_kcore_registers (struct pcb *pcb) diff -ruN /usr/ports/devel/gdb6/files/kvm-fbsd-sparc64.h gdb6/files/kvm-fbsd-sparc64.h --- /usr/ports/devel/gdb6/files/kvm-fbsd-sparc64.h Mon Aug 23 16:12:31 2004 +++ gdb6/files/kvm-fbsd-sparc64.h Thu Aug 26 16:17:36 2004 @@ -51,6 +51,7 @@ regcache_raw_supply (current_regcache, i + SPARC_I0_REGNUM, &top.fr_in[i]); } +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -96,3 +97,4 @@ } return (pc); } +#endif