From: Ruslan Kabatsayev via Gdb <gdb@sourceware.org>
To: Andreas Schwab <schwab@linux-m68k.org>, mahmood.nt@gmail.com
Cc: Andrew Dinn via Gdb <gdb@sourceware.org>
Subject: Re: Question about disassembly
Date: Fri, 12 Mar 2021 02:27:48 +0300 [thread overview]
Message-ID: <CAHEcG94LnD0jg0tYESVM1A=6mGEeT83amggJX4am7qcvJ5ku=g@mail.gmail.com> (raw)
In-Reply-To: <87r1kloovf.fsf@igel.home>
On Thu, 11 Mar 2021 at 16:10, Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Mär 11 2021, Andrew Dinn via Gdb wrote:
>
> > You will probably want to print the next instruction after each step which
> > can be done using x/i $pc.
>
> You can do that with disp/i $pc.
Or, maybe even easier, use TUI. Namely, issue the command "layout
asm", and you won't need disp/i. (Press Ctrl-x followed by "a" key to
return to normal, non-TUI, mode.)
You may also find Single Key mode of the TUI useful. To use it, in the
TUI press Ctrl-x followed by key "s". Now you can step into
instruction by single key "i" (as if using "stepi"), and step over by
key "o" (as if using "nexti"). To exit single-key mode hit "q" key.
For more single-key commands see "TUI Single Key Mode" in the docs
[1].
[1]: https://sourceware.org/gdb/onlinedocs/gdb/TUI-Single-Key-Mode.html
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
prev parent reply other threads:[~2021-03-11 23:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 12:06 Mahmood Naderan via Gdb
2021-03-11 12:16 ` Christian Biesinger via Gdb
2021-03-11 12:22 ` Andrew Dinn via Gdb
2021-03-11 12:29 ` Andreas Schwab
2021-03-11 23:27 ` Ruslan Kabatsayev via Gdb [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='CAHEcG94LnD0jg0tYESVM1A=6mGEeT83amggJX4am7qcvJ5ku=g@mail.gmail.com' \
--to=gdb@sourceware.org \
--cc=b7.10110111@gmail.com \
--cc=mahmood.nt@gmail.com \
--cc=schwab@linux-m68k.org \
/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