From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id pbOwKu0OKGkDgTYAWB0awg (envelope-from ) for ; Thu, 27 Nov 2025 03:42:21 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=starynkevitch.net header.i=@starynkevitch.net header.a=rsa-sha256 header.s=gm1 header.b=Cl1RDWr8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9FEF81E08D; Thu, 27 Nov 2025 03:42:21 -0500 (EST) 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 A8CAB1E08D for ; Thu, 27 Nov 2025 03:42:20 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 451463858D1E for ; Thu, 27 Nov 2025 08:42:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 451463858D1E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=starynkevitch.net header.i=@starynkevitch.net header.a=rsa-sha256 header.s=gm1 header.b=Cl1RDWr8 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by sourceware.org (Postfix) with ESMTPS id 7C5423858D1E for ; Thu, 27 Nov 2025 08:41:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C5423858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=starynkevitch.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=starynkevitch.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7C5423858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.70.183.198 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764232895; cv=none; b=bbGnoEAJlMi23zigp+q69SzOxB4kpAUBUYgUmUTVOYBtFqB6ypcGam/nxuhCkIs8iTzreYVV4jR492iIsOf+JdwOm8H2vMLfrxsIi3FXeynNhUa9KG329YTaB6f6mb7AvR/l/UgK7eqOhVd1HnHaaEZkFXDg+/bCvN37x+GeaGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764232895; c=relaxed/simple; bh=JWGeD09GInzySSwu5xZZEnb0d/QmbAC/ONho0mBdyGQ=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=bVNzWqKplxyhLOYygx7oAZNpZJ587VZSd3+Ov9XJoogZB3spqjLs0gx6Nrd+rhDos4C9v2cyUsxCbeRIN5Xkj1ommws77on0INU6mBRoRSlfNTm3cS7GbYjx00/vj5W8oYWFpJl6YMfPdN5/jespAZbkP8wwxqaXYTreXmLlUEQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C5423858D1E Received: by mail.gandi.net (Postfix) with ESMTPSA id 13F3B44391; Thu, 27 Nov 2025 08:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starynkevitch.net; s=gm1; t=1764232894; 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=fWZKqOrELo5Ug6Sn5JkMDvXTJO/6fDE/i51pyaUQGXc=; b=Cl1RDWr8F84HMyr/afS6e+Uk9NqYwNJwvh6IPfdPmnt5MvPkR96NfXvcO5nnMOgqz9XBfn d5oLZBdrSXkLQV5SWofMX/7pypBGUvHui1vaEaYtM2kVj/8K3986EyQyevb8R5A5JMdqLm IURXyLlEEBmdrWA0GNOAInSipV4+1ILorsxZhBcTfiDitPb7AjX5hCkm66ojMr+fGH5mTA i7mJy6IBTANIo11TC3MAmvroYSNiBHmbU1Fj5tbIYEkXRyXrjy7w6xYiCPhw8SIIN63qys 1PjE/ddTB9BeXBxpuIGSqy4nEwJbS1NU+3fZNyVfd8dOutVcsGIeKESFRumC/w== Message-ID: <383b9fb7b27dc039af3fd3c804760df06953ead8.camel@starynkevitch.net> Subject: Re: Creating and using dwarf information for ARMv7-A exception handlers From: Basile Starynkevitch To: jh@clesse.com Cc: gdb@sourceware.org Date: Thu, 27 Nov 2025 09:41:33 +0100 In-Reply-To: <3b2d8fa20308547f303e0ad605ac3a29@clesse.com> References: <1916c229fb1f148902bf15a1b60dedbe@clesse.com> <51ebaf670472865c9abb31854e16c795@clesse.com> <6af4b8e63d0f1e9ec75d5ca4452874a8@clesse.com> <3b2d8fa20308547f303e0ad605ac3a29@clesse.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-7 MIME-Version: 1.0 X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeeijeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecunecujfgurhepkffuhffvveffjghftgfgfgggsehtqhertddtreejnecuhfhrohhmpeeurghsihhlvgcuufhtrghrhihnkhgvvhhithgthhcuoegsrghsihhlvgesshhtrghrhihnkhgvvhhithgthhdrnhgvtheqnecuggftrfgrthhtvghrnheptdejueekjefhgedtgfffieeikedukedtjeevieegleevueehueefkedtudevieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhdprghrgihivhdrohhrghdpfhhrrghmrgdqtgdrtghomhdpshhtrghrhihnkhgvvhhithgthhdrnhgvthdpohhrtghiugdrohhrghenucfkphepvdgrtddumegvtdgrmedvfhefmeehgegrtdemrgdvfhefmegtudhffhemfhgvtddtmegstggsjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvrgdtudemvgdtrgemvdhffeemheegrgdtmegrvdhffeemtgdufhhfmehfvgdttdemsggtsgejpdhhvghloheprhhimhhskhhirdhlvghsohhurhhspdhmrghilhhfrhhomhepsggrshhilhgvsehsthgrrhihnhhkvghvihhttghhrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepjhhhsegtlhgvshhsvgdrtghomhdprhgtphhtthhopehguggssehsohhurhgtvgifrghrv gdrohhrghdprhgtphhtthhopegsrghsihhlvgdrshhtrghrhihnkhgvvhhithgthhesghhmrghilhdrtghomh X-GND-Sasl: basile@starynkevitch.net 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" On Thu, 2025-11-27 at 09:13 +0100, jh@clesse.com wrote: > Le 2025-11-26 11:05, Basile Starynkevitch a =C3=A9crit=C2=A0: > > On Wed, 2025-11-26 at 11:00 +0100, jh--- via Gdb wrote: > > > Hi, > > >=20 > > > I am working on an embedded target with a Cortex-A9 CPU. There is a > > > debug tool based on Eclipse and gdb 10.2. > > > I would like (if it is possible) to have a complete stack trace when= =20 > > > my > > > code is in the SVC handler. > >=20 > >=20 > > Did you consider using (in your code, not in GDB) > > https://github.com/ianlancetaylor/libbacktrace >=20 > Hi, >=20 > Thank you for you answer. > Is gdb using libbacktrace to perform the call stack unwind? Perhaps it does, but it is irrelevant since the address space of your debug= ger process is not the the address space of your software application. I am assuming you do use so= me operating system. For your information, the GCC compiler is using libbacktrace, to show its c= all trace on fatal compilation errors (in theory they don't happen). If you compile your code using GCC (it is probably invoked by Eclipse) you = do use libbacktrace indirectly. If you are developing some code running on a bare metal CPU, you still coul= d (with additional efforts)=20 link libbacktrace inside it to show the call stack. My RefPerSys project is using it (on Linux). Regards. NB: We probably are both French, so you could email me privately in French.= See https://arxiv.org/abs/1109.0779 and https://frama-c.com/ --=20 Basile STARYNKEVITCH basile AT starynkevitch DOT net 8 rue de la Fa=C3=AFencerie http://starynkevitch.net/= Basile/ =20 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSy= s https://orcid.org/0000-0003-0908-5250