From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 27 00:10:25 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9887616A4CF for ; Fri, 27 Aug 2004 00:10:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9328343D5D for ; Fri, 27 Aug 2004 00:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7R0AOTl009850 for ; Fri, 27 Aug 2004 00:10:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7R0AOXC009848; Fri, 27 Aug 2004 00:10:24 GMT (envelope-from gnats) Resent-Date: Fri, 27 Aug 2004 00:10:24 GMT Resent-Message-Id: <200408270010.i7R0AOXC009848@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Douglas Thrift Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7492B16A4CE for ; Fri, 27 Aug 2004 00:07:44 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF3D43D39 for ; Fri, 27 Aug 2004 00:07:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7R07ioF072697 for ; Fri, 27 Aug 2004 00:07:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i7R07hIs072686; Fri, 27 Aug 2004 00:07:43 GMT (envelope-from nobody) Message-Id: <200408270007.i7R07hIs072686@www.freebsd.org> Date: Fri, 27 Aug 2004 00:07:43 GMT From: Douglas Thrift To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/71011: Update port: devel/gdb6 made it work on 4.x again X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 00:10:25 -0000 >Number: 71011 >Category: ports >Synopsis: Update port: devel/gdb6 made it work on 4.x again >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Aug 27 00:10:24 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Douglas Thrift >Release: 4.10-STABLE >Organization: >Environment: FreeBSD daemon.local.douglasthrift.net 4.10-STABLE FreeBSD 4.10-STABLE #1: Thu May 27 01:42:28 PDT 2004 douglas@daemon.local.douglasthrift.net:/usr/obj/usr/src/sys/DAEMONIC i386 >Description: On FreeBSD 4.x GDB 6 needs the newer version of Readline provided by devel/readline and a newer GCC such as 3.4. Also kvm-fbsd.c conditionally redefined the function fbsd_kern_frame_saved_pc, but the didn't headers didn't hide the previous definition. >How-To-Repeat: >Fix: 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 >Release-Note: >Audit-Trail: >Unformatted: