From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20379 invoked by alias); 20 Aug 2008 01:31:09 -0000 Received: (qmail 20370 invoked by uid 22791); 20 Aug 2008 01:31:08 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Aug 2008 01:30:36 +0000 Received: by rv-out-0708.google.com with SMTP id b17so231577rvf.48 for ; Tue, 19 Aug 2008 18:30:34 -0700 (PDT) Received: by 10.140.139.3 with SMTP id m3mr4474964rvd.165.1219195834614; Tue, 19 Aug 2008 18:30:34 -0700 (PDT) Received: by 10.141.20.8 with HTTP; Tue, 19 Aug 2008 18:30:34 -0700 (PDT) Message-ID: Date: Wed, 20 Aug 2008 16:58:00 -0000 From: "Guillaume Laferriere" To: gdb@sourceware.org Subject: Re: Question: How to load automatically all libraries of a back trace. In-Reply-To: <48A5E0EF.9090409@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48A5E0EF.9090409@vmware.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00227.txt.bz2 Thanks for the answer but it does not work in my case. Calling sharedlibrary without args loads up too much symbols. It loads all the symbols of the libraries in memory and for me it's too much. I'm looking for a way to load only libraries that are referenced in a given call stack to avoid loading everything. Thanks Guillaume On Fri, Aug 15, 2008 at 4:02 PM, Michael Snyder wrote: > Guillaume Laferriere wrote: >> >> I'm debugging an application that has a lot of shared libraries so I >> always have to run with auto-solib-add turned off. >> >> When I get back trace I always need to go through the process of >> running manually "bt" then "shared-library libMyLib.so" until I get >> the full valid back trace. >> >> Is there a way to automate that process? >> Maybe using a user command that does it for me. >> Is there someone that already did that? >> >> Thanks in advance for the help, >> > > I think "shared-library" with no arguments. > "Info shared" will confirm for you whether they > have all been loaded. > >