Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 1999 23:10:01 -0700 (PDT)
From:      Kip Macy <kip@lyris.com>
To:        Richard Cownie <tich@ma.ikos.com>
Cc:        freebsd-current@freebsd.org, gdb@sourceware.cygnus.com, tich@par28.ma.ikos.com
Subject:   Re: gdb-4.17 in FreeBSD 4.0-CURRENT
Message-ID:  <Pine.SOL.4.05.9909012306460.28347-100000@luna>
In-Reply-To: <99082010412803.11889@par28.ma.ikos.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I tried doing the same on FreeBSD 3.2-STABLE
but when I run it it complains that it is unable to find dynamic linker
breakpoint function and then it stops with a SIGTRAP.
Any ideas what might be wrong?

Thanks.

				-Kip

On Fri, 20 Aug 1999, Richard Cownie wrote:

> I managed to build gdb-4.17 in FreeBSD 4.0, here's how to do it:
> 
> 1) gdb-4.17/configure --host=i386-unknown-freebsdelf4.0
>     Have to specify the host explicitly, otherwise it doesn't realize
>     it needs to use ELF.
> 
> 2) in gdb-4.17/Makefile, add "-DSVR4_SHARED_LIBS" to definition of CFLAGS
> 
> 3) in gdb-4.17/gdb/solib.c, add #include "elf/common.h" 
>     (after #include "elf/external.h")
> 
> 4) in gdb-4.17/gdb/infptrace.c, add #define U_REGS_OFFSET 0x1fa8
>     I figured out this number the hard way by searching all the valid PT_READ_U
>     addresses and comparing the results with PT_GETREGS - found locations
>     where eip and esp values matched up.  Doubtless there's a better way to
>     get the right value.
> 
> Then it should all build (and perhaps work).  The same hacks probably apply
> to gdb-4.18 and gdb-current (but so far gdb-4.17 is the most useful version
> I've seen for debugging C++).
> 
> Richard Cownie (tich@ma.ikos.com)
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 
> 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.05.9909012306460.28347-100000>