From: Luis Machado <luis.machado@arm.com>
To: Adrian Oltean <adrian.oltean@nxp.com>,
Keith Seitz <keiths@redhat.com>, John Baldwin <jhb@FreeBSD.org>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: [EXT] Re: Context switch during stepping causes weird behavior
Date: Thu, 13 Oct 2022 07:34:01 +0100 [thread overview]
Message-ID: <b564da74-fd57-61e3-6a4a-860a454b4026@arm.com> (raw)
In-Reply-To: <AM6PR04MB4630AF911D7B8B2A0CEEDA18F1229@AM6PR04MB4630.eurprd04.prod.outlook.com>
Hi Adrian,
On 10/12/22 07:46, Adrian Oltean via Gdb wrote:
> Thanks guys. Looks like displaced stepping is off by default when GDB is running
> in all-stop mode - my case. So I'll have to look for other ways to work around
> the behavior I described.
That is a bit misleading. It used to be the case it was only used for non-stop mode, but
nowadays it is supported if the underlying target supports it.
I don't think Arm (As in arm-none-elf, I'm assuming this is the case here) supports it, but when
debugging linux-hosted Arm binaries, then it is supported.
See gdb/infrun.c:gdbarch_supports_displaced_stepping.
>
> Adrian
>
>> Caution: EXT Email
>>
>> On 10/5/22 09:53, John Baldwin wrote:
>>
>>> I don't know off the top of my head if there is a knob to disable
>>> displaced stepping.
>> FYI:
>>
>> (gdb) apropos displaced
>> set debug displaced -- Set displaced stepping debugging.
>> set displaced-stepping -- Set debugger's willingness to use displaced stepping.
>> show debug displaced -- Show displaced stepping debugging.
>> show displaced-stepping -- Show debugger's willingness to use displaced
>> stepping.
>>
>> Keith
>
next prev parent reply other threads:[~2022-10-13 6:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 12:19 Adrian Oltean
2022-10-04 16:57 ` John Baldwin
2022-10-05 6:48 ` Adrian Oltean
2022-10-05 16:53 ` John Baldwin
2022-10-07 15:40 ` Keith Seitz
2022-10-12 6:46 ` [EXT] " Adrian Oltean
2022-10-13 6:34 ` Luis Machado [this message]
2022-10-13 6:41 ` Adrian Oltean
2022-10-10 9:52 ` Luis Machado
2022-10-12 6:40 ` [EXT] " Adrian Oltean
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=b564da74-fd57-61e3-6a4a-860a454b4026@arm.com \
--to=luis.machado@arm.com \
--cc=adrian.oltean@nxp.com \
--cc=gdb@sourceware.org \
--cc=jhb@FreeBSD.org \
--cc=keiths@redhat.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).