From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14289 invoked by alias); 4 Feb 2014 19:05:40 -0000 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 Received: (qmail 14279 invoked by uid 89); 4 Feb 2014 19:05:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: samersoff.net Received: from Unknown (HELO samersoff.net) (81.9.105.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 04 Feb 2014 19:05:38 +0000 Received: from [192.168.0.77] (port=44036 helo=dooku.mircat.net) by samersoff.net with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.82) (envelope-from ) id 1WAlJN-000KrI-W7; Tue, 04 Feb 2014 23:05:34 +0400 Message-ID: <52F139FD.2010601@samersoff.net> Date: Tue, 04 Feb 2014 19:05:00 -0000 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Pedro Alves CC: gdb@sourceware.org Subject: Re: bfd way to get list of loaded DSO from coredump References: <52E51821.6090702@samersoff.net> <52F136F7.3030300@redhat.com> In-Reply-To: <52F136F7.3030300@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00007.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pedro, Thank you for the response! Today, I'm using target (ELF or MACH-O) specific code (like Elf_Internal_Dyn) directly to get list of loaded SOLIBs from coredump Is there any BFD primitives that allows me to remain platform independent? - -Dmitry On 2014-02-04 22:52, Pedro Alves wrote: > On 01/26/2014 02:13 PM, Dmitry Samersoff wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> Hi Everybody, >> >> What is the best way to get list of shared libraries loaded by >> process at time of crash using libbfd ? i.e. similar to what >> "info shared" gdb command does. > > You didn't mention the target, but the knowledge of how to extract > the set of loaded shared libraries is actually in GDB (the solib* > files), not BFD. > - -- Dmitry Samersoff Saint Petersburg, Russia, http://devnull.samersoff.net * There will come soft rains ... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS8Tn9AAoJEHEy08c4gIABu4YIAKY7GUed0B7kvhRXsVIPaZCr z3DNTAxqs4nIuiPWK9WXf8XB8akOMf0AdW/bIQmlWjqpvHCKnpaojaDOTLgCJ2bE Fj6fd3E7y9Wrf9l509ggHra1Wq6oLj6/S3x3Wa50O38r3E2nL4li3N0StUTcwfB9 VfBC78YPcwRTU5VxZoNckDQFIwDOWmpeZ5wisyrE8azGVeCvNUJLpX7ajXHlktnS 7UCEdB7gBtCPIAAqPU7yhCHu2Y1EGDgpJHVoRKahJozWO7pQh2ArEB1yvOqqvQPM febZkdoGtOISpa/1aKB2D/wd/HbcLLN6aiHJzajZN8m5onVyjEKRkU2/E7s6nGs= =2LtD -----END PGP SIGNATURE-----