diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-27 15:44:04 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-27 15:44:04 +0000 |
commit | fee86abe1fc968a3ac7c6a851769a7cac2540675 (patch) | |
tree | 81914c82ec2d1cde86e0d58c07cd426edfff95ce /devel/gdb6 | |
parent | 896122813901468f03197ec46c22820163988380 (diff) | |
download | ports-fee86abe1fc968a3ac7c6a851769a7cac2540675.tar.gz ports-fee86abe1fc968a3ac7c6a851769a7cac2540675.zip |
Notes
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) |