On Tue, Oct 9, 2012 at 11:32 AM, Basile Starynkevitch
<bas...@starynkevitch.net> wrote:
>
> You could provide an extra API to register dlopen & dlclose to libbacktrace, 
> if that helps you
> (of course, I would prefer avoiding that)

I would prefer avoiding that as well.

Calling dl_iterate_phdr can tell libbacktrace reliably the set of
shared libraries that are currently loaded.  The trick is knowing when
to call it.  It may simply be OK to call it every time we look up a PC
value, in which case we can look at the dlpi_adds and dlpi_subs field.
 I'm not sure.

Ian

Reply via email to