This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Anyone using alpha-freebsd target in gdb-current?
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Mark Kettenis <kettenis at science dot uva dot nl>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 12 Jan 2002 16:41:26 -0800
- Subject: Re: Anyone using alpha-freebsd target in gdb-current?
- Organization: Wasabi Systems, Inc.
- References: <20020109193418.L17203@dr-evil.shagadelic.org> <s3ivgear3e7.fsf@soliton.wins.uva.nl>
- Reply-to: thorpej at wasabisystems dot com
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 <thorpej@wasabisystems.com>