From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mSiQJ/6x72hE/zQAWB0awg (envelope-from ) for ; Wed, 15 Oct 2025 10:38:54 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=s/vBoYqS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9DE231E0BA; Wed, 15 Oct 2025 10:38:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 101B51E047 for ; Wed, 15 Oct 2025 10:38:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AA788385AC24 for ; Wed, 15 Oct 2025 14:38:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA788385AC24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1760539133; bh=znhwLfquF1H144C7BEHGPYg8cO/1g+4ju2afCFMwP3U=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=s/vBoYqS0pD/mxzTx/cWHlcxSZTeSgMPzFg7Zf0Vk5Za2qQw+9qA+kAQ06gkfVxuP XZxDZQtdmy5lN8hzCa9QaqBghE8OgfJyIndRy29kMB2dzH+SMQdMGvaWdgPiYrcvOy 52HzHf5YV3lgN8a0TFvvPlNH47AuoydUxjHiBLOc= Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id C75FE385AC21 for ; Wed, 15 Oct 2025 14:33:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C75FE385AC21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C75FE385AC21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760538814; cv=none; b=D8nuKvz4rPc4CV0Pnzobc7gWj8wZ/Ta49id6IQYcpv7KeKDu7H+TL0LdxQgRAkQ/TzDRFDn8dFjSeaekpJfbkyZPiDr6xSDEG4i/x3KbPLQhRfKx3nPWuHtOmwH+GqtEZWjysBU/sibJfj4emoKpJ8Hls4SXVZTkEwgR+ehpJCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760538814; c=relaxed/simple; bh=okDVxlvmXStSXsXVElZT4dcgjRDu+L8e+X8xNP5uhy4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=D00OeFTTbR1ov7I82xcPmjinfVTgVd9A6cp/jf6fmOAoFG1qpeFXL8d/2xkr/BsvQAKmx3btdrfvWezMce1XJgsvYg0bWs60z8zfZft0gfXjA6ytcKMbMWKIZFDKTQTZ73g/v6S/c01KmGgK/F/C5s6Ea4ZtP6rCfjdqTuxi9bA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C75FE385AC21 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-4291359714eso55672235ab.1 for ; Wed, 15 Oct 2025 07:33:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760538808; x=1761143608; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=znhwLfquF1H144C7BEHGPYg8cO/1g+4ju2afCFMwP3U=; b=PIpQhK7A4A+yQaf7XMy/KljTdSuMJjs+pj9bgz2/syp+3GN0id9zoYwIsHoYyD6IZC 2AM+wu/7WdIN4/xZ6zvZ9cedwDUVd9tNjT4/Yba37gyIfQGGkXX0sD10Qar+7YMcObWy cqk3bjNGVm9x5bFrHzVRph/WR+SDd97cxA1SfVwx+uDDOr7dvg+SvP60LwPZaqSZcnX8 EsMSVkS1kfTFZtTmMizAtyUDWq3XNYoFV41Hy5Qo4kJQpgOZ5RWdytkCq+/dqGhUzHim h10LX4YofQQkVPwsUYlv2xtSHBUM0HZGR7S3L1hdnww+HiZyDYVdxJkTFFFL0Mb3Qgkf briA== X-Forwarded-Encrypted: i=1; AJvYcCV6t5EcIOE34QFUxw7gSv35ovm3u6+GneUBr7B2NsxMH9s+xGKL/52D8Yggkua84JoYOiQ=@sourceware.org X-Gm-Message-State: AOJu0Yy8FNZkCbI+3Y1fg1Kyv6HO/qCH274g5S2oWj5UQYxZVjQbng1B qYc+ebMgHCdcF+72lF6u7KWYUFwrqhssV700QDMcRcqfm4q3r+IZQvXFq30fbI8w3e0= X-Gm-Gg: ASbGncue54ctlPOysHAjWGpgjvnDZBA1hk+PvFt3BNoZW9OTpL+SSrG74Z0ApjimO0U L5XZn8V0BGtE/rv1F726HRBiP3RlQ5oHUK1Y9MFUzmKKB3QuHERFnbqwcThd6JRp0gxhWXyh6hV sx3nEEq15/TyhPCdyN2TU4IRQLit72a1akc1Ezi8WoUOs5uJY5YXEAkMV/eoUn2wlRBCLfv0jlY KyajnreEntO775zbi5CZDwJcS2ou1tx+PxfhG0QgCnMcgJZ5TFbxtNSPj9Vf2x4DE60vr+Rb3Ps ksP8rWhuI7trnbeQd2wM6NV1F1FkeHFBuGVBBbtc5XbdTEu7hLDs/yl1ekF4ce1NGbEyYkuMwZm AZFL73YGS3WI2M+BFL4LUl3+OsDRxA+S1+y7eb3kkq5M0OpIOlOsK07IdYa52 X-Google-Smtp-Source: AGHT+IE56TK3oJP/q9fY8xGJsI2pRt3zOyAGwkyeKerhNyI+JT8Zn9TqLfiZ6GKAs/r4gGlDNuoBgw== X-Received: by 2002:a05:6e02:270a:b0:425:951f:52fa with SMTP id e9e14a558f8ab-42f87376e77mr317951075ab.14.1760538807682; Wed, 15 Oct 2025 07:33:27 -0700 (PDT) Received: from [192.168.86.46] ([174.82.221.71]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-59ff4fb192esm1521274173.68.2025.10.15.07.33.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Oct 2025 07:33:27 -0700 (PDT) Message-ID: <6a0596af-bef7-48fe-9212-8ff83b99d475@tenstorrent.com> Date: Wed, 15 Oct 2025 09:33:25 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [EXT] Re: gdb does not stop at printf for ppc To: Sachin Monga Cc: libc-help@sourceware.org, "libc-alpha@sourceware.org" , Segher Boessenkool , Michael Meissner , Surya Kumari Jangala , Carl Love , Adhemerval Zanella Netto , Tom Tromey , Adhemerval Zanella Netto via Gdb References: <0535055f-7a42-4390-b134-34b8e3ee657e@linaro.org> <87wm5b6a9w.fsf@tromey.com> <7b3847ee-3348-4eec-9f1c-4bad527f2a5f@linaro.org> Content-Language: en-US In-Reply-To: <7b3847ee-3348-4eec-9f1c-4bad527f2a5f@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Peter Bergner via Gdb Reply-To: Peter Bergner Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 10/7/25 12:21 PM, Adhemerval Zanella Netto wrote: > On 03/10/25 16:43, Tom Tromey wrote: >> Yes, DWARF can use DW_TAG_imported_declaration. However gdb's support >> for this is incomplete and you'd have to try it out to see if it's >> sufficient for this purpose. > > Thanks for the information, but it seems that it can not be easily created > by the compiler on C code (typedef creates DW_TAG_typedef and asm function > aliases do not generate DWARF entries); and relying on a possible incomplete > is kinda fragile because we would like to support old gdb releases. > > I think the local symbol aliases seems the best strategy. Ok, then I think we have a plan. Sachin, how about you use Adhemerval's local symbol alias solution and place it through some thorough testing? Peter