From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11963 invoked by alias); 13 Jan 2002 00:41:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11921 invoked from network); 13 Jan 2002 00:41:27 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 13 Jan 2002 00:41:27 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id B5A97986B; Sat, 12 Jan 2002 16:41:26 -0800 (PST) Date: Sat, 12 Jan 2002 16:41:00 -0000 From: Jason R Thorpe To: Mark Kettenis Cc: gdb@sources.redhat.com Subject: Re: Anyone using alpha-freebsd target in gdb-current? Message-ID: <20020112164126.B542@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , Mark Kettenis , gdb@sources.redhat.com References: <20020109193418.L17203@dr-evil.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kettenis@science.uva.nl on Thu, Jan 10, 2002 at 09:55:44AM +0100 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-01/txt/msg00132.txt.bz2 On Thu, Jan 10, 2002 at 09:55:44AM +0100, Mark Kettenis wrote: > I did the port to alpha-freebsd-5.0 (a.k.a. freebsd-current). I still > work on it from time to time, and it should work reasonably with a > recent gcc. Should it also work with GCC 2.95.3? > The system compiler for freebsd-current generates unusable debug > output, both for stabs and dwarf2. Gcc 3.0 and above should do much better. The lossage I'm seeing seems totally irrelavent to debugging symbols, unfortunately. > Isn't NetBSD/alpha using ELF? In that case it shouldn't set any > implicit breakpoints at __start. If NetBSD/alpha doesn't use ELF, > then you might need to work on getting the old SunOS/a.out shared > library support working on NetBSD/alpha. Yes, it's ELF, and it uses solib-svr4.c. I'm referring to bkpt_names[] in solib-svr4.c: #define BKPT_AT_SYMBOL 1 #if defined (BKPT_AT_SYMBOL) static char *bkpt_names[] = { #ifdef SOLIB_BKPT_NAME SOLIB_BKPT_NAME, /* Prefer configured name if it exists. */ #endif "_start", "main", NULL }; #endif _start is the executable entry point on FreeBSD/alpha. It's __start on NetBSD/alpha, and thus my alpha/tm-nbsd.h defines: #define SOLIB_BKPT_NAME "__start" As I understand the use of bkpt_names[], it's used to create a solib event when all of the default shared libraries are loaded for a program. -- -- Jason R. Thorpe