From owner-cvs-all Wed Sep 16 12:18:00 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA14878 for cvs-all-outgoing; Wed, 16 Sep 1998 12:18:00 -0700 (PDT) (envelope-from owner-cvs-all) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14868; Wed, 16 Sep 1998 12:17:56 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id UAA26931; Wed, 16 Sep 1998 20:17:11 +0100 (BST) Date: Wed, 16 Sep 1998 20:17:11 +0100 (BST) From: Doug Rabson To: John Polstra cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/libexec/rtld-elf rtld.c In-Reply-To: <199809161901.MAA02069@austin.polstra.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 16 Sep 1998, John Polstra wrote: > > > 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. That's true. An ifdef might be useful but perhaps not till after 3.0R :-). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039