Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Dmitry Neverov via Gdb <gdb@sourceware.org>
To: Tom Tromey <tom@tromey.com>
Cc: Dmitry Neverov via Gdb <gdb@sourceware.org>
Subject: Re: Index files are not used in the session where they were created
Date: Wed, 15 Nov 2023 11:18:39 +0100	[thread overview]
Message-ID: <CAEY59_+=+v+2keFLG3dZWaHAv1k8h=GDTk8LBGeJQW5U_re-KA@mail.gmail.com> (raw)
In-Reply-To: <87h6m5jraw.fsf@tromey.com>

> I am not sure if it's possible to do this, but I think it would be worth
> investigating.

Is it wrong to do something like the following in the 'if
(symbol_matcher == nullptr)'
branch in cooked_index_functions::expand_symtabs_matching?

  enum language cu_lang = entry->per_cu->lang(false);
  if (cu_lang != language_unknown && lookup_name->match_type() ==
symbol_name_match_type::FULL)
    {
      const language_defn *lang_def = language_def (cu_lang);
      symbol_name_matcher_ftype *name_matcher =
lang_def->get_symbol_name_matcher (lookup_name_without_params);
      auto_obstack temp_storage;
      if (!name_matcher(entry->full_name(&temp_storage),
lookup_name_without_params, nullptr))
        continue;
    }

Dmitry

      parent reply	other threads:[~2023-11-15 10:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25  8:01 Dmitry Neverov via Gdb
2023-07-26 16:20 ` Tom Tromey
2023-08-01  6:42   ` Dmitry Neverov via Gdb
2023-10-13  8:57     ` Dmitry Neverov via Gdb
2023-10-25 15:59       ` Dmitry Neverov via Gdb
2023-11-01 17:51         ` Tom Tromey
2023-11-06 10:41           ` Dmitry Neverov via Gdb
2023-11-13 16:59           ` Dmitry Neverov via Gdb
2023-11-15 10:18           ` Dmitry Neverov via Gdb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEY59_+=+v+2keFLG3dZWaHAv1k8h=GDTk8LBGeJQW5U_re-KA@mail.gmail.com' \
    --to=gdb@sourceware.org \
    --cc=dmitry.neverov@jetbrains.com \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox