From: Basile Starynkevitch <basile@starynkevitch.net>
To: jh@clesse.com
Cc: gdb@sourceware.org
Subject: Re: Creating and using dwarf information for ARMv7-A exception handlers
Date: Thu, 27 Nov 2025 09:41:33 +0100 [thread overview]
Message-ID: <383b9fb7b27dc039af3fd3c804760df06953ead8.camel@starynkevitch.net> (raw)
In-Reply-To: <3b2d8fa20308547f303e0ad605ac3a29@clesse.com>
On Thu, 2025-11-27 at 09:13 +0100, jh@clesse.com wrote:
> Le 2025-11-26 11:05, Basile Starynkevitch a écrit :
> > On Wed, 2025-11-26 at 11:00 +0100, jh--- via Gdb wrote:
> > > Hi,
> > >
> > > 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
> > > my
> > > code is in the SVC handler.
> >
> >
> > Did you consider using (in your code, not in GDB)
> > https://github.com/ianlancetaylor/libbacktrace
>
> Hi,
>
> 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 debugger process is not the
the address space of your software application. I am assuming you do use some operating system.
For your information, the GCC compiler is using libbacktrace, to show its call 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 could (with additional efforts)
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/
--
Basile STARYNKEVITCH basile AT starynkevitch DOT net
8 rue de la Faïencerie http://starynkevitch.net/Basile/
92340 Bourg-la-Reine https://github.com/bstarynk
France https://github.com/RefPerSys/RefPerSys
https://orcid.org/0000-0003-0908-5250
next prev parent reply other threads:[~2025-11-27 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1916c229fb1f148902bf15a1b60dedbe@clesse.com>
[not found] ` <51ebaf670472865c9abb31854e16c795@clesse.com>
2025-11-26 10:00 ` jh--- via Gdb
2025-11-26 10:05 ` Basile Starynkevitch
2025-11-27 8:13 ` jh--- via Gdb
2025-11-27 8:41 ` Basile Starynkevitch [this message]
2025-12-01 19:59 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=383b9fb7b27dc039af3fd3c804760df06953ead8.camel@starynkevitch.net \
--to=basile@starynkevitch.net \
--cc=gdb@sourceware.org \
--cc=jh@clesse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox