From owner-freebsd-arm@FreeBSD.ORG Thu Aug 14 21:54:42 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 542B81065670 for ; Thu, 14 Aug 2008 21:54:42 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 21EB38FC12 for ; Thu, 14 Aug 2008 21:54:42 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 213862BC3F for ; Fri, 15 Aug 2008 09:54:41 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jwqr9q-wRQ-x for ; Fri, 15 Aug 2008 09:54:37 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP for ; Fri, 15 Aug 2008 09:54:37 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 53D1A1142B; Fri, 15 Aug 2008 09:54:35 +1200 (NZST) Date: Thu, 14 Aug 2008 14:54:35 -0700 From: Andrew Thompson To: freebsd-arm@freebsd.org Message-ID: <20080814215435.GA94816@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: static function table in DDB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 21:54:42 -0000 Hi, I notice that DDB on Arm does not have the static functions in the symbol table (vs. i386 for instance). Is this something that I can enable? It makes stack traces difficult to use as it will print the function as the nearest global with a largish offset. cheers, Andrew From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 11:47:25 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FE4410656D4; Fri, 15 Aug 2008 11:47:25 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 308CF8FC17; Fri, 15 Aug 2008 11:47:23 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.14.1/8.13.8) with ESMTP id m7FDcgTK065506; Fri, 15 Aug 2008 15:38:42 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id m7FDcglm065505; Fri, 15 Aug 2008 15:38:42 +0200 (CEST) (envelope-from mlfbsd) Date: Fri, 15 Aug 2008 15:38:41 +0200 From: Olivier Houchard To: Andrew Thompson Message-ID: <20080815133841.GA58191@ci0.org> References: <20080814215435.GA94816@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080814215435.GA94816@citylink.fud.org.nz> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: static function table in DDB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 11:47:25 -0000 On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > Hi, > > > I notice that DDB on Arm does not have the static functions in the symbol > table (vs. i386 for instance). Is this something that I can enable? It > makes stack traces difficult to use as it will print the function as the > nearest global with a largish offset. > Hi, The problem is probably, your bootloader doesn't load the kernel symbol table, as it is not an ELF loadable section. You can try to boot "kernel.tramp", instead of the regular "kernel". it is a tiny ELF trampoline, which will handles the kernel relocation, and put the symbol table somwhere where the kernel will find it. Regards, Olivier From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 16:22:04 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61B30106567D for ; Fri, 15 Aug 2008 16:22:04 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 10A178FC4A for ; Fri, 15 Aug 2008 16:22:03 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 6CEAC2BD5A; Sat, 16 Aug 2008 04:22:02 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KemAsD-SF58M; Sat, 16 Aug 2008 04:21:57 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sat, 16 Aug 2008 04:21:57 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 696B31142B; Sat, 16 Aug 2008 04:21:54 +1200 (NZST) Date: Fri, 15 Aug 2008 09:21:53 -0700 From: Andrew Thompson To: Olivier Houchard Message-ID: <20080815162153.GD94816@citylink.fud.org.nz> References: <20080814215435.GA94816@citylink.fud.org.nz> <20080815133841.GA58191@ci0.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080815133841.GA58191@ci0.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-arm@freebsd.org Subject: Re: static function table in DDB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 16:22:04 -0000 On Fri, Aug 15, 2008 at 03:38:41PM +0200, Olivier Houchard wrote: > On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > > Hi, > > > > > > I notice that DDB on Arm does not have the static functions in the symbol > > table (vs. i386 for instance). Is this something that I can enable? It > > makes stack traces difficult to use as it will print the function as the > > nearest global with a largish offset. > > > > Hi, > > The problem is probably, your bootloader doesn't load the kernel symbol table, > as it is not an ELF loadable section. > You can try to boot "kernel.tramp", instead of the regular "kernel". it is > a tiny ELF trampoline, which will handles the kernel relocation, and put > the symbol table somwhere where the kernel will find it. I see, its not that the symbol table is incomplete but its missing entirely and ddb is falling back to the linker to resolve the names. I will try this out, thanks. Andrew From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 17:41:53 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 022D0106566B for ; Fri, 15 Aug 2008 17:41:53 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id A72868FC1C for ; Fri, 15 Aug 2008 17:41:52 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 97B872BD3B; Sat, 16 Aug 2008 05:41:51 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UbimMTsc5jPT; Sat, 16 Aug 2008 05:41:43 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sat, 16 Aug 2008 05:41:43 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 32E771142B; Sat, 16 Aug 2008 05:41:43 +1200 (NZST) Date: Fri, 15 Aug 2008 10:41:43 -0700 From: Andrew Thompson To: Olivier Houchard Message-ID: <20080815174143.GG94816@citylink.fud.org.nz> References: <20080814215435.GA94816@citylink.fud.org.nz> <20080815133841.GA58191@ci0.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080815133841.GA58191@ci0.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-arm@freebsd.org Subject: Re: static function table in DDB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 17:41:53 -0000 On Fri, Aug 15, 2008 at 03:38:41PM +0200, Olivier Houchard wrote: > On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > > Hi, > > > > > > I notice that DDB on Arm does not have the static functions in the symbol > > table (vs. i386 for instance). Is this something that I can enable? It > > makes stack traces difficult to use as it will print the function as the > > nearest global with a largish offset. > > > > Hi, > > The problem is probably, your bootloader doesn't load the kernel symbol table, > as it is not an ELF loadable section. > You can try to boot "kernel.tramp", instead of the regular "kernel". it is > a tiny ELF trampoline, which will handles the kernel relocation, and put > the symbol table somwhere where the kernel will find it. This indeed fixed it! thanks, Andrew