From owner-freebsd-alpha Fri Jan 11 12:26:29 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from madeline.boneyard.lawrence.ks.us (madeline.boneyard.lawrence.ks.us [24.124.26.25]) by hub.freebsd.org (Postfix) with ESMTP id BE8E637B404 for ; Fri, 11 Jan 2002 12:26:24 -0800 (PST) Received: from madeline.boneyard.lawrence.ks.us (madeline.boneyard.lawrence.ks.us [24.124.26.25]) by madeline.boneyard.lawrence.ks.us (8.11.1/8.11.1) with ESMTP id g0BKQLF51352 for ; Fri, 11 Jan 2002 14:26:23 -0600 (CST) (envelope-from bsd-alpha@boneyard.lawrence.ks.us) Date: Fri, 11 Jan 2002 14:26:21 -0600 (CST) From: "Stephen D. Spencer" To: freebsd-alpha@FreeBSD.ORG Subject: RE: /boot/loader failure 4.5-PR In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 11 Jan 2002, John Baldwin wrote: > [...] Can you do this, can you build a debug loader (clean > sys/boot and then compile it with -g in CFLAGS). Strip the loader before you > install it though, and then repeat this and get the ra again (ra is the return > address), then reboot the system, fire up gdb on the debug loader binary with > all the symbols, and do 'l *0x'. For example, in this case you > would do 'l *0x2000073C' except that your loader binary probably doesn't have > symbols. > Hrm... she doesn't want to dance with me... I rebuilt sys/boot making sure the CFLAGS variable was set to -g (nothing else) The only ELFin file that was created was loader.sym. I tried gdb'ing it with te return address from the failed /boot/loader. It complains about no source file for address *0x2000073C. I thought that this file might be the correct one to load into the debugger as loader is generated from an objdump of loader.sym. Anyway, I'm evidently missing something here. Note: the loader that I initially reported address information for had been compiled with -g Further instructions? Regards, Stephen -- Stephen Spencer UNIX Systems Administrator Electrical Engineering and Computer Science Dept. University of Kansas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message