Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 1998 12:01:44 -0700
From:      John Polstra <jdp@polstra.com>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/libexec/rtld-elf rtld.c 
Message-ID:  <199809161901.MAA02069@austin.polstra.com>
In-Reply-To: Your message of "Wed, 16 Sep 1998 09:05:06 BST." <Pine.BSF.4.01.9809160903170.392-100000@herring.nlsystems.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >   I personally would prefer to leave the dynamic linker's entry out
> >   of the GDB search list altogether.  But Doug argues that it is
> >   handy there for such things as setting breakpoints on dlopen().
> >   So it stays for now, at least.
...
> I have been able to debug the whole rtld startup from _rtld() onwards,
> including relocatiing rtld itself and loading the main program's
> libraries.  Having gdb able to see rtld's symbols is invaluable when
> working on this code.

Yes, but to debug the rtld's code in this way, you have to build a
special (-g and unstripped) version of it anyway.  I'd prefer to add
an ifdef RTLD_GDB, and only make the rtld's symbols visible if it is
defined.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809161901.MAA02069>