From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id /CGIA+XzLWlN+AwAWB0awg (envelope-from ) for ; Mon, 01 Dec 2025 15:00:37 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=VE2Nn4iS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F15981E0C6; Mon, 01 Dec 2025 15:00:36 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from sourceware.org (vm01.sourceware.org [38.145.34.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 5D85F1E0C6 for ; Mon, 01 Dec 2025 15:00:36 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC89A48FD874 for ; Mon, 1 Dec 2025 20:00:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC89A48FD874 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=VE2Nn4iS Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 8328748FDB28 for ; Mon, 1 Dec 2025 19:59:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8328748FDB28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8328748FDB28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764619184; cv=none; b=VX4BZ/Rj4MZQJZMENxQkWLoy6J9VlOHLK3u05wCCG7JFM6nGYbbF95yChdelO2ZI+wHX4oY6sLeivUCcQ6IscG+DbX4gQboSh1D1PNgU1lM4MwEj4dGx0Y/69UbySbQwPjg3lZxxjADFtdKoKtxdFZ1WRD7zKthVrWd0cEGCh+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764619184; c=relaxed/simple; bh=9M7jaY8BpaNH0Dt+p9SFJei7a8id+zgBdyVPsvse4Ok=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vFtqLoT5lVJiE9BPjthLM/uom18tNF6grnsq34eiaZZ/1we2WpGHTsNiJgnlp7u5JQ3BTvhVJaha7o314ZiAvT8LYulW+Qr/ja+EtJfiTXQSJT0MzPLhNIqM7RE6lMwvK46qCfJQu2KZ+fFxrMRuN3LIzfrPEQd7QQZU8Z9+5kQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8328748FDB28 Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id Q4RgvHRIhv724QA3kvAqWk; Mon, 01 Dec 2025 19:59:44 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id QA3jvU3kwvXvHQA3jvoVpL; Mon, 01 Dec 2025 19:59:43 +0000 X-Authority-Analysis: v=2.4 cv=e4IGSbp/ c=1 sm=1 tr=0 ts=692df3af a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=wP3pNCr1ah4A:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=Mj2xIX0pI_WO8O90xowA:9 a=ul9cdbp4aOFLsgKbc677:22 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=78/CHAIWZEu3Gm+VYMZiP4yZZENYjSOBo+PIDey/4Yg=; b=VE2Nn4iSLqpOdhBzOk1m1owigU oiaiV27+Xlzzr0z+aZASD32z0aZcySJpbTIkQbkgn335/fnwFCAaSLimAF5StNZ6uVsCboIJJexax yMi2wcFhfvQH+2Rtt9dfliM7Q; Received: from 97-122-120-205.hlrn.qwest.net ([97.122.120.205]:58952 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vQA3j-00000000dyc-05Sz; Mon, 01 Dec 2025 12:59:43 -0700 From: Tom Tromey To: jh--- via Gdb Cc: jh@clesse.com Subject: Re: Creating and using dwarf information for ARMv7-A exception handlers In-Reply-To: <6af4b8e63d0f1e9ec75d5ca4452874a8@clesse.com> (jh's message of "Wed, 26 Nov 2025 11:00:50 +0100") References: <1916c229fb1f148902bf15a1b60dedbe@clesse.com> <51ebaf670472865c9abb31854e16c795@clesse.com> <6af4b8e63d0f1e9ec75d5ca4452874a8@clesse.com> X-Attribution: Tom Date: Mon, 01 Dec 2025 12:59:41 -0700 Message-ID: <87ikeq9dn6.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.120.205 X-Source-L: No X-Exim-ID: 1vQA3j-00000000dyc-05Sz X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-120-205.hlrn.qwest.net (bapiya) [97.122.120.205]:58952 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAqo6LxZQb8Mrjd1NQB6CqrkGXUSegMnAxtbsOvyeZ6P4pNka8qjwY1mlg2UWCX9Heq8f+egCOwyaxni5B3FZn7Q/+k+wmjUGKZFbc64dTiy70c41MDC 6ts9tS40ksrlBplCeQn7w88aNPE+aljDQHzmGJzkUOxFOCtTZ4EFe2D4MeNariZv6ZIFUlsvsHTyzg== 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: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> jh--- via Gdb writes: > I would like (if it is possible) to have a complete stack trace when > my code is in the SVC handler. I don't know anything about ARM. However it's often the case that unwinding through special frames requires some extra support, either some flag in the debuginfo somewhere, or a special unwinder in gdb. > What am I doing wrong? > Is there a way to dump the dwarf state in gdb? To try and determine > what it understands of my code and how it is primed when the > breakpoint is triggered. > Is the register number wrong? Is it something on the gdb side? There's no simple answer to these questions. Unwinding in gdb is rather complicated. You can sometimes get some info with "set debug frame 1". However the normal method is to debug gdb and try to understand what's gone wrong. I do see a lot of unwinding code in arm-tdep.c. I'd expect a lot of that to be bypassed, though, if the DWARF describes the frame in question. If so then you'd be looked at debugging through the DWARF unwinder. Tom