very very slow symbol searches

Daniel Jacobowitz drow@mvista.com
Thu Jan 23 01:45:00 GMT 2003


On Wed, Jan 22, 2003 at 05:16:29PM -0800, Martin M. Hunt wrote:
> More details.  The slowdown is caused by using the glibc regex.  Why
> would that make it so much slower?  Don't know yet.  Anyway forcing GDB
> to use the included regex in libiberty fixes the problem.
> 
> 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
> 
>         * configure.in: Rewrite check for GNU regex and the
>         --without-included regex option, and move it into the "Checks
> for
>         library functions" section.  This makes us use the system regex
>         again by default on systems with version 2 of the GNU C library.
>         This was apparently broken.
>         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
>         * acconfig.h (USE_INCLUDED_REGEX): Remove.
>         * config.in, configure: Regenerated.

Sigh, let me gues, is your host glibc version 2.3?  The regex engine
was rewritten, not always for the better.

Some performance issues were fixed recently in the glibc CVS.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list