Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* bfd way to get list of loaded DSO from coredump
@ 2014-01-26 14:14 Dmitry Samersoff
  2014-02-04 18:52 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Samersoff @ 2014-01-26 14:14 UTC (permalink / raw)
  To: gdb

-----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.

- -Dmitry

- -- 
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/

iQEcBAEBAgAGBQJS5RghAAoJEHEy08c4gIABExwH/3AUoy/fFXcfE1SpcB4P7pYd
CnBiI67gkxV8z7aIb3riA7DqF2/4nSjKjcKJ+yjTYfw0xaJWk5STH5wqMKX20VR+
X3hOzKSmSAXh6fyQJXn579UYoYbm99jIunf51VZ9CPfeKHGtpg6BpmtVbT53E9XD
kCZ63kZ8vzYZcYi+7YIrmz2GuR9q2JrCgNvkfjrtbppPTXmEUzR1CXTLyb9cMK3i
HBlrnNOkTjuZeuwyX/z4v1BTw6Ax0IlkUiAVMFuJEIFMYBN0C84peIfZIOqn6z2q
CTmykgIaiPL8AjD/L1DloBVWHU5KxUWMKZrWkbBLhXZbeC9WeQWnYeBdJ4GIAig=
=RcaF
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bfd way to get list of loaded DSO from coredump
  2014-01-26 14:14 bfd way to get list of loaded DSO from coredump Dmitry Samersoff
@ 2014-02-04 18:52 ` Pedro Alves
  2014-02-04 19:05   ` Dmitry Samersoff
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2014-02-04 18:52 UTC (permalink / raw)
  To: Dmitry Samersoff; +Cc: gdb

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.

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bfd way to get list of loaded DSO from coredump
  2014-02-04 18:52 ` Pedro Alves
@ 2014-02-04 19:05   ` Dmitry Samersoff
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Samersoff @ 2014-02-04 19:05 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb

-----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-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-04 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-26 14:14 bfd way to get list of loaded DSO from coredump Dmitry Samersoff
2014-02-04 18:52 ` Pedro Alves
2014-02-04 19:05   ` Dmitry Samersoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox