This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] PR gdb/10952: install gdbarch_skip_solib_resolver on AMD64 GNU/Linux
On 05/05/2012 06:40 PM, Mark Kettenis wrote:
>> From: Pedro Alves <palves@redhat.com>
>> Date: Thu, 03 May 2012 16:30:11 +0100
>>
>> PR gdb/10952 is about single stepping into functions being very slow
>> when LD_BIND_NOW is not set. What this means is that stepping over
>> resolving PLTs is slow. It turns out that for for some reason, which
>> I couldn't determine from looking at the archives/history, the AMD64
>> GNU/Linux port doesn't install glibc_skip_solib_resolver as
>> gdbarch_skip_solib_resolver callback, meaning that GDB needs to issue
>> many single-steps to get past the resolver. This looks like an
>> oversight.
>>
>> Is there a reason we shouldn't install this?
>
> I can't think of any, so if it helps speeding things up, go ahead!
Thanks Mark. I've applied it now.
--
Pedro Alves