From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by sourceware.org (Postfix) with ESMTPS id 7CE783858D20 for ; Wed, 15 Nov 2023 10:18:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CE783858D20 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=jetbrains.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jetbrains.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7CE783858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::930 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700043533; cv=none; b=jQujiU/7MLqL1jV+qe3CloLG/WazAkLirI66OoID4K6WBKQwrQaCnHfz0l2G30tpaotkPvM5yvzaLMCt0d4EyJQgo0ox2cuNYVM4LvWvRWGCQo8mFXSsI8oMTX8jzOBr3L8BPIWytwEb15DMKtraSIRI7Gv+idoVlJ2KeGeIjFI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700043533; c=relaxed/simple; bh=SUHZ3wO9qVpFoG44q8y/eI17V9Dj64+OFc5UsppAX+M=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=bgBJaAlDG2q1ax+UjZ6bp24TUFEQRd8mSCRbyXiwbCBjzQxNOOZb9SUGOBKX/pGOj1TbC4YnHQRKWp4hda0wzpWhwGWTNhl6beSq1MmcK5QJ7VmbEipukOuMZS2s/OGCytaOh2WyQe1fniwMCVKc7xoQsWe/i1BOWp82seInn14= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7ba962d534eso2470021241.3 for ; Wed, 15 Nov 2023 02:18:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jetbrains.com; s=googleapps; t=1700043531; x=1700648331; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wK+TfclAnyBVBapM41mBYjFtF5Jr/54Sr9WWPfpwwtI=; b=GghxtVzyAN6k+wIATZH/ugdt5QeZKVBs57Xf9wiMDlWCGIG20QHfFXmnRQ/WsF2DPJ g9XZedrjVmviir+TmM6cFAFfw5d47wvO/AQoOPiiVLANUerNMne+yOV89KXvCWaWzBKM BeTqlDAwnGhkRl2lvc7KPGhNGPkgj8qb8Jgew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700043531; x=1700648331; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wK+TfclAnyBVBapM41mBYjFtF5Jr/54Sr9WWPfpwwtI=; b=KHMkc9Y6maIZEtyppMnSmxH18tfgS/uiwlz/fHOBwyO9KUJtdH8ulCJSsUmWUk+isL WTvOKKLuDfJy5FjEsef+9vCzixMlpau4VLs8w8pbsT/0SEiTBWnQdI0MmBpXm7ziIUTs 7IqtFd0tV7/Cjj+DLP5ekIZGVzniNbE4qP9e8CjHN5Ri+6+oMKhumohKhDrTaEKv9q02 UlCLvc1JEWGy7/HjgqjqLHvXUBqRTncONNUd/F8W4eTZYpph8v+oUPE+AW3fvATt86Mc 2dlRHvDEDU1Jddw6sJwvEpEn4I4T5e6BrIqqEZnn2EZWZkyiOr2RJp2MsP+RS/n663jZ DzVQ== X-Gm-Message-State: AOJu0YzDlfo2+GtyEiZKdWQFrbb3+jrPxCdB2JNbt5Md5BmVNBwILwbt BsKKA6rEegOo8ajXrR/BHCbCcwvgUeRy8uvWRPVZ7Hcc5LI81+X5m6RLLA== X-Google-Smtp-Source: AGHT+IE5XGVc9BSFJ7NYshS+XeFO3DK9eYh68kZ8mznNnBD2N3tQkJfHdRaIG25Ztq76cBswAakrdV/0MdKbuiAhi6I= X-Received: by 2002:a05:6122:468a:b0:4ab:fc1a:ae93 with SMTP id di10-20020a056122468a00b004abfc1aae93mr12382987vkb.16.1700043530813; Wed, 15 Nov 2023 02:18:50 -0800 (PST) MIME-Version: 1.0 References: <87351ak5kt.fsf@tromey.com> <87h6m5jraw.fsf@tromey.com> In-Reply-To: <87h6m5jraw.fsf@tromey.com> From: Dmitry Neverov Date: Wed, 15 Nov 2023 11:18:39 +0100 Message-ID: Subject: Re: Index files are not used in the session where they were created To: Tom Tromey Cc: Dmitry Neverov via Gdb Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > 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