Re: libbacktrace patch committed: Trace through shared libraries

2012-10-11 Thread Ian Lance Taylor
On Thu, Oct 11, 2012 at 1:44 AM, Rainer Orth wrote: > Ian Lance Taylor writes: > >> On Wed, Oct 10, 2012 at 7:13 AM, Rainer Orth >> wrote: >>> >>> Solaris 10 Update 10 or sufficiently recent linker patches introduced >>> dl_iterate_phdr on S10 as a backport from Solaris 11, but unlike S11, it >>

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-11 Thread Rainer Orth
Ian Lance Taylor writes: > On Wed, Oct 10, 2012 at 7:13 AM, Rainer Orth > wrote: >> >> Solaris 10 Update 10 or sufficiently recent linker patches introduced >> dl_iterate_phdr on S10 as a backport from Solaris 11, but unlike S11, it >> lives in libdl.so only. The current dl_iterate_phdr check m

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2012 at 7:13 AM, Rainer Orth wrote: > > Solaris 10 Update 10 or sufficiently recent linker patches introduced > dl_iterate_phdr on S10 as a backport from Solaris 11, but unlike S11, it > lives in libdl.so only. The current dl_iterate_phdr check misses that, > and given that it's o

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-10 Thread Rainer Orth
Ian Lance Taylor writes: > This patch to libbacktrace adds support for tracing through shared > libraries. The libraries are found by calling dl_iterate_phdr, when it > is available. Unfortunately, this breaks all Go link tests on Solaris 10: output is: Undefined first re

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-10 Thread Hans-Peter Nilsson
On Tue, 9 Oct 2012, Ian Lance Taylor wrote: > It's an incorrect warning from an old version of GCC. Fixed like so. > Bootstrapped and ran libbacktrace testsuite on > x86_64-unknown-linux-gnu. Committed to mainline. Another two in libbackend/elf.c, committed as obvious after build passed the poin

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-09 Thread Ian Lance Taylor
On Tue, Oct 9, 2012 at 9:28 PM, Hans-Peter Nilsson wrote: > On Tue, 9 Oct 2012, Ian Lance Taylor wrote: >> Patch bootstrapped and ran libbacktrace and Go testsuites on >> x86_64-unknown-linux-gnu. Committed to mainline. > > Trying x86_64 host gcc 4.1.2 (--target=rl78-elf but not the issue) at > r

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-09 Thread Hans-Peter Nilsson
On Tue, 9 Oct 2012, Ian Lance Taylor wrote: > Patch bootstrapped and ran libbacktrace and Go testsuites on > x86_64-unknown-linux-gnu. Committed to mainline. Trying x86_64 host gcc 4.1.2 (--target=rl78-elf but not the issue) at r192285: /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONF

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-09 Thread Jakub Jelinek
On Tue, Oct 09, 2012 at 01:43:06PM -0700, Ian Lance Taylor wrote: > On Tue, Oct 9, 2012 at 11:32 AM, Basile Starynkevitch > 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

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-09 Thread Ian Lance Taylor
On Tue, Oct 9, 2012 at 11:32 AM, Basile Starynkevitch 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 relia

Re: libbacktrace patch committed: Trace through shared libraries

2012-10-09 Thread Basile Starynkevitch
On Tue, Oct 09, 2012 at 11:20:48AM -0700, Ian Lance Taylor wrote: > This patch to libbacktrace adds support for tracing through shared > libraries. The libraries are found by calling dl_iterate_phdr, when it > is available. This functionality is definitely useful for meta-plugins like MELT (sinc