This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: gdb very slow during 'step into'
- From: "Smith, Stephen \(SWCOE\)" <Stephen dot Smith at honeywell dot com>
- To: "Jim Blandy" <jimb at codesourcery dot com>, "dodji Seketeli" <dodji at seketeli dot org>
- Cc: <gdb at sourceware dot org>
- Date: Wed, 3 Jan 2007 12:59:12 -0700
- Subject: RE: gdb very slow during 'step into'
Sounds good, but I am experiencing the same problem. The trouble is
that on my platform, neither symbol is defined (I am running on an
embedded platform that does not have glibc ported to it.) What should
be the generic fix?
-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
Behalf Of Jim Blandy
Sent: Wednesday, January 03, 2007 12:52 PM
To: dodji Seketeli
Cc: gdb@sourceware.org
Subject: Re: gdb very slow during 'step into'
"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.)