diff options
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/language.c b/gdb/language.c index c05b703..c3872fc 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -707,13 +707,14 @@ default_symbol_name_matcher (const char *symbol_search_name, completion_match_result *comp_match_res) { const std::string &name = lookup_name.name (); - + completion_match_for_lcd *match_for_lcd + = (comp_match_res != NULL ? &comp_match_res->match_for_lcd : NULL); strncmp_iw_mode mode = (lookup_name.completion_mode () ? strncmp_iw_mode::NORMAL : strncmp_iw_mode::MATCH_PARAMS); if (strncmp_iw_with_mode (symbol_search_name, name.c_str (), name.size (), - mode, language_minimal) == 0) + mode, language_minimal, match_for_lcd) == 0) { if (comp_match_res != NULL) comp_match_res->set_match (symbol_search_name); |