From: Tomas Vanek <vanekt@fbl.cz>
To: Luis Machado <luis.machado@arm.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] gdb/arm: Terminate frame unwinding in M-profile lockup state
Date: Mon, 17 Oct 2022 22:20:19 +0200 [thread overview]
Message-ID: <939656b1-2189-4177-c29c-d0430a8f4dff@fbl.cz> (raw)
In-Reply-To: <615642c8-920c-fc1d-b5d9-0c5e480da94f@arm.com>
Hi Luis,
On 17/10/2022 13:06, Luis Machado wrote:
>
>> With the change:
>> ----------------
>> (gdb) c
>> Continuing.
>>
>> Program received signal SIGINT, Interrupt.
>> warning: ARM M in lockup state, stack unwinding terminated.
>> <signal handler called>
>> (gdb) bt
>> #0 <signal handler called>
>> (gdb)
>> ----------------
>>
>> There is a visible drawback of emitting a warning in a cache buildnig
>> routine
>> as introduced in Torbjörn SVENSSON's
>
> True. We might need to move it somewhere else. Though it is not
> something we will have to repeat over and over.
Just an idea: What about a text message (describing something odd during
unwind)
which an unwinder can associate with the frame and gets printed later
by 'backtrace' command?
It may also replace not too informative <signal handler called> for
SIGTRAMP_FRAMEs.
Anyway the message about the CPU in lockup is useful even just after
stopping the running target.
>
> There is also the issue of communicating these warnings in a better
> way through the MI to IDE's.
>
>> [PATCH v4] gdb/arm: Stop unwinding on error, but do not assert
>> The warning is printed just once and not repeated on each backtrace
>> command.
>>
Tomas
prev parent reply other threads:[~2022-10-17 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-16 14:13 Tomas Vanek
2022-10-17 11:06 ` Luis Machado
2022-10-17 20:20 ` Tomas Vanek [this message]
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=939656b1-2189-4177-c29c-d0430a8f4dff@fbl.cz \
--to=vanekt@fbl.cz \
--cc=gdb-patches@sourceware.org \
--cc=luis.machado@arm.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).