From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +qAONLOjAGtZDyUAWB0awg (envelope-from ) for ; Fri, 20 Nov 2026 14:46:59 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Xo3/0EAV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C12031E023; Fri, 20 Nov 2026 14:46:59 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E12CB1E023 for ; Fri, 20 Nov 2026 14:46:58 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9CF7140AAF3B for ; Fri, 20 Nov 2026 19:46:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CF7140AAF3B Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Xo3/0EAV Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id B604C40A249A for ; Fri, 20 Nov 2026 19:46:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B604C40A249A Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B604C40A249A Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795203992; cv=none; b=voZucjMmZONgdDAToIf2wtCbRxhW5Qjc/rsY7Wi48gdRJxjPc9OxPFtR8LKKtX9d0/Fv76TbCPgIDi0HnL5O5lWO0TvHrjFGEdj8wO+zSmvvBOB/5S673rzW0ZGY41YYrLt2wkFvi1X0jP7CJ9JZ+RGCal4hp0fjM+zKrCR+O7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795203992; c=relaxed/simple; bh=2eUDZvAXF/dZxuYdcZm/wpBVO/zUHldhatZTWomfAMs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Nbgrw8NeMAGCEEHMWidfcnxrL2J2KDf9gnJIrBeSsdynWfLPnG7UxMKnFXBxrmBfH8mkttBGm3P7OHX5n20w/m63slcOG4kE80+faaak3WM9sDsdYqcpfhMIkGJbkh9qeMw+De6BIocFSnFk2ZBrzXiIJ+rWJLot07E3Lsy7TA8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Xo3/0EAV DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B604C40A249A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795203992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xpn4KYfY/XKyKgWLt9N5ws0haSFULPRwELPzNmTss5o=; b=Xo3/0EAVnPzKkjE6ccLKCdMxGspiwOGICPiF5qlSKQbeFxd6+mgWT3wanyBbU783d2BKn8 LSHQ60dxEAm+WOdlQ4lBS5naZWb5dDLyXBeXHW+DGxfQ4C4z8nbNmgKC4TcG4i+TextS2H wcvMpc0Jj+xiAUiy/Jt2V20TWnfEnkw= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-245-qFRHc2i9PKOYU3VCWJo_Qg-1; Fri, 20 Nov 2026 19:46:28 +0000 X-MC-Unique: qFRHc2i9PKOYU3VCWJo_Qg-1 X-Mimecast-MFC-AGG-ID: qFRHc2i9PKOYU3VCWJo_Qg_1795203987 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-9495dd0f07eso237814185a.0 for ; Fri, 20 Nov 2026 11:46:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795203987; x=1795808787; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xpn4KYfY/XKyKgWLt9N5ws0haSFULPRwELPzNmTss5o=; b=AMPceKXWfNN6/yCnC/NZsypcCMna6Q2MTsZxk8d66ClS7w2P5VYzzPfrSapEvNXeoZ kkHBvzGY+vvv5Ij21SWYxt586Yy8X7kxGd0ZXwyo1HOlnmnkLlm2Gb176Tkbl10iPYtT nBzztBvW8/+XiIill2lma4Zfohd2jDn+gy/X8toCAUrNcGS+FETxY72QQWYKhbb8tXfu 45MgjOAz3U1mON+1vYbInf3wW0FD1yP4VbznLps5Z+KW5DAY+W89Z8303mf0r6DJlhI3 tr++frO4jFZ6n/IRIusB8uTVvS/IgNF1x3XBCyWC2LaDrjnKQHUFAAcqv4aOKxsK5dtA +o4w== X-Forwarded-Encrypted: i=1; AL+hErFHQh3xc4dlQUS7rlJDh2wR6e+hIftrakn7+DD8xc8PrJgaF1D1QzTfm4dQFUcE6JkGnnKL0VL1MCHE9Q==@sourceware.org X-Gm-Message-State: APuU4Z9t4zHrtCM99NlROXUxBmBH3iin5JCNv6BtNwY7YgOK4TA4n6tW gIjOVtI3aao1cGfPibKfBDklbLIxXWMpimi/3fImV8fNNX5ljmE8UbxRU9ZRZjL83rgXOS2Znal 2IrN4axPoCXE088W50qXC0qVVSGFNLbL76UKU6QKWBSVnZ1hluArl4NXsoKuCGuY= X-Gm-Gg: AYBFou1aRkQOyqqEqZ64QH0LQ9EMhpKY8kHKYfLAX01V/NZZeetDdYF/4unAR1BGVQ/ IElqcFZj8/N1DxcmtYXMhWgUnUsvgYqaI21YPwvQdeFy3vEq9agrLsuMrwIwmYaPDW56KmGxTXs 3CxlY3sLfrC+XQeKCpxdiGdB77lgsosPVV64qNYlw/mjZXtNRekL0AaFEb5R3hOC2A+UTXcnX4+ qoowjmYwcp22AybnDtBBEP9G1Cs/ZnYFuXulvWZgmBzYRGpasvQoEEYWzDnZtMBzWGbjeAEfV+e mUTSacXr6kNhV9VYuXYZPbNanSb3P+P6H+ybZsGEcBWe+EJeNlgWmhRh27R/0T3TROZkTKfG2c0 pp+W4NZgSTKpGefXHQfaDC6Sh4XZsBpCR45w6m9GrzbecGpLROgnAXWU= X-Received: by 2002:a05:620a:600d:b0:949:6775:4714 with SMTP id af79cd13be357-949ba8485fbmr593614585a.5.1795203987132; Fri, 20 Nov 2026 11:46:27 -0800 (PST) X-Received: by 2002:a05:620a:600d:b0:949:6775:4714 with SMTP id af79cd13be357-949ba8485fbmr593610485a.5.1795203986671; Fri, 20 Nov 2026 11:46:26 -0800 (PST) Received: from [150.1.200.157] ([172.56.105.46]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb38319asm265795285a.16.2026.11.20.11.46.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Nov 2026 11:46:26 -0800 (PST) Message-ID: Date: Fri, 20 Nov 2026 11:46:24 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb/symtab] Fall back to symtabs when the quick lookup misses To: Sendao Yan , gdb-patches@sourceware.org Cc: Andrew Burgess References: <20261120091803.89033-1-yansendao@126.com> From: Keith Seitz In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: guqqbySdvu2iEwKpizSYR3l6rakCLthxQ5MO2NCYXpk_1795203987 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi, I'd also like to ask a question or two... On 11/20/26 10:26 AM, Andrew Burgess wrote: > Sendao Yan writes: > >> lookup_symbol_in_objfile has only searched the cooked index since commit >> 86ac8c546235 ("Convert lookup_symbol_in_objfile"). The index stores the >> DWARF spelling of a name, so a DWARF5 static constexpr member of a >> template instantiation can be missed when the C++ expression evaluator >> looks it up using canonicalised template arguments: GCC records >> std::ratio<1, 1> but the lookup uses std::ratio<1l, 1l>. This "std::ratio<1, 1>" vs "std::ratio<1l, 1l>" is exactly what canonicalization is supposed to address. Both symbol names from the compiler and user input should be canonicalized. > Can you talk more about why this bug cannot be fixed in the quick syms > lookup path. At the very least, if we are baking in a known limitation > (reliance on expanded symtabs), then this should be documented in both > the commit message and code comments. I really wonder whether there is some canonicalization that isn't happening. From the description, it sounds like the compiler's name for the symbol was not canonicalized. Keith