From: Tavis Ormandy via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Re: How to display instructions around the current instuction?
Date: Fri, 29 Jan 2021 17:38:05 -0000 (UTC) [thread overview]
Message-ID: <rv1h5t$8so$1@ciao.gmane.io> (raw)
In-Reply-To: <87o8h86gwc.fsf@igel.home>
On 2021-01-28, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Jan 28 2021, Peng Yu wrote:
>
>> There could be a syntax to go back a given number of instructions.
>
> How do you know how long each instruction is?
>
I just learned about the x/-5i syntax and had the same question. I
didn't look at the code but it does seem to know where the boundaries
are (e.g. if you start in the middle of an instruction).
I guess it must disassemble forward from a previous known location to
learn all the boundaries first?
Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
next prev parent reply other threads:[~2021-01-29 17:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-27 23:12 Peng Yu via Gdb
2021-01-28 8:48 ` Andreas Schwab
2021-01-28 17:08 ` Peng Yu via Gdb
2021-01-28 18:44 ` Andreas Schwab
2021-01-29 17:38 ` Tavis Ormandy via Gdb [this message]
2021-01-28 9:19 ` Stefan Puiu via Gdb
2021-01-28 17:06 ` Peng Yu via Gdb
2021-01-28 17:26 ` Eli Zaretskii via Gdb
2021-01-28 17:37 ` Peng Yu via Gdb
2021-01-28 17:41 ` Christian Biesinger via Gdb
2021-01-29 2:07 ` Peng Yu via Gdb
2021-01-29 2:22 ` Sterling Augustine via Gdb
2021-01-29 2:32 ` Peng Yu via Gdb
2021-01-29 2:47 ` Sterling Augustine via Gdb
2021-01-28 17:57 ` Eli Zaretskii via Gdb
2021-01-28 18:00 ` Stefan Puiu via Gdb
2021-01-29 2:15 ` Peng Yu via Gdb
2021-01-28 13:11 ` Christian Biesinger via Gdb
2021-01-28 16:50 ` Peng Yu via Gdb
2021-01-28 16:53 ` Christian Biesinger via Gdb
2021-01-28 17:16 ` Peng Yu via Gdb
2021-01-28 17:16 ` Christian Biesinger via Gdb
2021-01-28 17:00 ` Sterling Augustine via Gdb
[not found] ` <CAGOmfbFh+6AJZFsDP8nFH1bs6kntC4khO+YmPkn3LUfcLAspZw@mail.gmail.com>
2021-01-28 17:45 ` Peng Yu via Gdb
2021-01-28 18:27 ` Pedro Alves
2021-01-29 1:58 ` Peng Yu via Gdb
2021-01-29 7:18 ` Eli Zaretskii via Gdb
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='rv1h5t$8so$1@ciao.gmane.io' \
--to=gdb@sourceware.org \
--cc=taviso@gmail.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