public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Jonny Grant <jg@jguk.org>
Cc: gdb@sourceware.org
Subject: Re: Inspecting memory address contents in GDB
Date: Sun, 09 Apr 2023 21:50:30 +0200	[thread overview]
Message-ID: <87y1n0sum1.fsf@igel.home> (raw)
In-Reply-To: <f0a618d6-6321-df89-c994-fd2e41b731cd@jguk.org> (Jonny Grant's message of "Sun, 9 Apr 2023 19:09:04 +0100")

On Apr 09 2023, Jonny Grant wrote:

> Hi
> Pasting some output lines from a core dump gdb session below.
> I noticed after "x/8c" the line seems stuck in ASCII mode. So when I do "x/8b" it doesn't go back to output in hex, is that expected?

From help x:

    Defaults for format and size letters are those previously used.
    Default count is 1.  Default address is following last thing printed
    with this command or "print".

'c' is a format, 'b' is a size letter.  Each one will independently
remain in effect until a different format and size, resp., is used.

-- 
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."

  reply	other threads:[~2023-04-09 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-09 18:09 Jonny Grant
2023-04-09 19:50 ` Andreas Schwab [this message]
2023-04-09 22:03   ` Jonny Grant

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=87y1n0sum1.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=gdb@sourceware.org \
    --cc=jg@jguk.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).