From owner-freebsd-stable@FreeBSD.ORG Sat Mar 5 07:22:31 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9785516A4CE for ; Sat, 5 Mar 2005 07:22:31 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E8D943D39 for ; Sat, 5 Mar 2005 07:22:31 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 7334572DD9; Fri, 4 Mar 2005 23:22:31 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 70CE672DD8; Fri, 4 Mar 2005 23:22:31 -0800 (PST) Date: Fri, 4 Mar 2005 23:22:31 -0800 (PST) From: Doug White To: Ulrich Spoerlein In-Reply-To: <20050301210630.GB818@galgenberg.net> Message-ID: <20050304231917.S4084@carver.gumbysoft.com> References: <20050301210630.GB818@galgenberg.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: gdb missing add-shared-symbol-files. why? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2005 07:22:31 -0000 On Tue, 1 Mar 2005, Ulrich Spoerlein wrote: > Hi, > > played with dmalloc and the docu says to do the following in gdb: > (gdb) sharedlibrary > (gdb) add-shared-symbol-files > This command is not available in this configuration of GDB. > (gdb) break dmalloc_error > > Why is this command not available? The code in question is at > /usr/src/contrib/gdb/gdb/symfile.c:1760 I believe gdb automatically loads dynamic libraries linked against a binary when that binary is debugged. So that command many not have any affect on FreeBSD. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org