From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IfLzGP97s2OjRw4AWB0awg (envelope-from ) for ; Mon, 02 Jan 2023 19:51:11 -0500 Received: by simark.ca (Postfix, from userid 112) id 5B7A41E222; Mon, 2 Jan 2023 19:51:11 -0500 (EST) 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=eEe+nmLE; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 16CB01E112 for ; Mon, 2 Jan 2023 19:51:11 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F3AF3838150 for ; Tue, 3 Jan 2023 00:51:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F3AF3838150 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672707070; bh=OC6V+n7MYwudUwYJRSPzqAqhrnBsHud6otCeiW9b6K0=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=eEe+nmLECH0Gs1ZRLIhO0DlJ8SjWVWvXg49322a52jMZlh7C9dcMjD9fUDEJsaWn9 VHYaNxIcIGBTe2NyRGmQYsNPzQVtBXcKgtOn7kNvGAseRQ86/T9tD8Wa3Yw3f0mWIo Z+wpAu+vE6PYjmAJNaguNzfM3wamyE1H0P4PiIUY= Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id E2A5F3858D32 for ; Tue, 3 Jan 2023 00:50:24 +0000 (GMT) Received: by mail-pj1-x1030.google.com with SMTP id a11-20020a17090a740b00b00223f7eba2c4so1791502pjg.5 for ; Mon, 02 Jan 2023 16:50:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=OC6V+n7MYwudUwYJRSPzqAqhrnBsHud6otCeiW9b6K0=; b=pILG23rHH4/oa6NjCgR9wlCqaXOnjGcVQWD3foTG3T9OKaBnLOMmO8W1/5BG5GcDKO Zq0CGv+8HEzu0qNBjfSnIys+OcxIWYT+Vm/b1LiO70P9/b7WI9je9qS1VIbNkx3WwBjY LxayPlyX7qMSZMKJaq2cvZLJMeubctOxf971dqEmEwdGa5zWmLN7xfislZQwxDD27jxI gXrRuSTyZNUGv2D6RWja5wicjcL6i7NOWoAI4L/LIu/a/jEJ81vIkCPlG32cvVwdpF32 LyNQaq5/g9PRbP39qj2azMvdyl82+SRSw1ep98BnX0CkefkFZ1lR3zmnZZsUOXpX7oVI nQVw== X-Gm-Message-State: AFqh2kqBOW7wBinw+kYJ6F9onsWCEUnycO1KWfw3GPETFwznKuXYBhhh 2VEgcvuxEf1vS3vwEdZip1bBGOzwjdlj2A== X-Google-Smtp-Source: AMrXdXt6eN7GJ3FnZSvcmXtqaTodoBDOfsSCbz9UEcYbj2XJ3Qg9Ph3rBi2+2E9osgr0tLzZwMw9Pg== X-Received: by 2002:a17:90a:d18b:b0:226:8005:c43a with SMTP id fu11-20020a17090ad18b00b002268005c43amr4159427pjb.23.1672707022930; Mon, 02 Jan 2023 16:50:22 -0800 (PST) Received: from ?IPV6:2405:9800:b962:626f:f1ce:973a:7222:bc2b? ([2405:9800:b962:626f:f1ce:973a:7222:bc2b]) by smtp.googlemail.com with ESMTPSA id h6-20020a63c006000000b00478b930f970sm17284400pgg.66.2023.01.02.16.50.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Jan 2023 16:50:22 -0800 (PST) Message-ID: <130c9bae-22d9-2d74-45ec-4e4b7ee59c00@gmail.com> Date: Tue, 3 Jan 2023 07:50:19 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: gdb@sourceware.org Subject: AArch64 and fixed return address register (x30) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sylwester Garncarek via Gdb Reply-To: Sylwester Garncarek Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi All, I've been working on adding CFI directives to assembler sources (GNU Asm) of an RTOS and I noticed that GDB seems to ignore .cfi_return_column directive. I checked GDB sources and indeed for AArch64 architecture the return address is fixed to x30 register. Normally this is not a problem, but for exception/interrupt the return address is in ELR_mode register. Because GDB is fixed to x30, there is no way to get a valid call stack. Are there any plans to make the return address register adjustable according to the info provided in DWARF data? Thanks, Sylwester