gdb very slow during 'step into'

Jim Blandy jimb@codesourcery.com
Wed Jan 3 19:52:00 GMT 2007


"dodji Seketeli" <dodji@seketeli.org> writes:
>> If you set the environment variable LD_BIND_NOW to a non-empty value
>> before running your program (use GDB's 'set env' command), does that
>> eliminate the slow steps?
>
> Wow, yes. It does eliminate the problem. Thank you !.

I'm glad that helped!  But setting LD_BIND_NOW is just a workaround;
GDB ought to work properly without that.  Could you apply the
following patch to GDB and see if it makes the problem go away, even
with LD_BIND_NOW left unset?

(Tested without regressions on Fedora Core 6 IA-32.  I haven't been
able to reproduce the problem myself, so I'm just guessing that this
is the patch.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jimb.glibc-update-fixup-name.patch
Type: text/x-patch
Size: 975 bytes
Desc: look up _dl_fixup to step over dynamic linker resolver
URL: <http://sourceware.org/pipermail/gdb/attachments/20070103/f165f4a1/attachment.bin>


More information about the Gdb mailing list