This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [mingw] gdb eat a lot of memory and slowly when start an inferior
- From: Joel Brobecker <brobecker at adacore dot com>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: gdb at sourceware dot org, Xun Xun <xunxun1982 at gmail dot com>
- Date: Fri, 27 Jan 2012 19:38:03 +0400
- Subject: Re: [mingw] gdb eat a lot of memory and slowly when start an inferior
- References: <4F228353.3010707@gmail.com> <20120127110110.GO31397@adacore.com> <4F22AFF5.1000609@gmail.com>
> Hi, Joel, I did what you suggest. Finally, I definitely found that this issue was introduced by your patch in:
>
>
> Author: Joel Brobecker
> Date: 2012-1-26 12:20:31
> Message:
> Ada: allow unqualified function names in linespecs
Can you try the attached patch? This should restore the only effective
change I made for non-Ada units.
--
Joel
diff --git a/gdb/linespec.c b/gdb/linespec.c
index dc9dfc6..d0a35a4 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -365,7 +365,7 @@ iterate_over_all_matching_symtabs (const char *name,
matcher_data.symbol_name_match_p =
current_language->la_get_symbol_name_match_p != NULL
? current_language->la_get_symbol_name_match_p (name)
- : strcmp_iw;
+ : strcmp_iw_ordered;
ALL_PSPACES (pspace)
{