From: Tom Tromey <tom@tromey.com>
To: Andrew Burgess <aburgess@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/python: allow Architecture.disassemble to give styled output
Date: Fri, 20 Mar 2026 11:54:44 -0600 [thread overview]
Message-ID: <87y0jm8jyz.fsf@tromey.com> (raw)
In-Reply-To: <2412723aff2f39ed778743b957d2ab8da51335e1.1774020654.git.aburgess@redhat.com> (Andrew Burgess's message of "Fri, 20 Mar 2026 15:31:11 +0000")
>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:
Andrew> Extend the Architecture.disassemble API to allow the user to request
Andrew> styled disassembler output via a new styling argument. A user can now
Andrew> write:
Andrew> insn = arch.disassemble(address, styling = True)
Andrew> The instruction strings returned within INSN will contain ANSI escape
Andrew> sequences so long as 'set style enabled on' is in effect. This means
Andrew> that the user's personal settings (disabling styling) will override a
Andrew> GDB extension that requests styled disassembler output. I think this
Andrew> makes sense.
Andrew> The default for the styling argument is False, this maintains the
Andrew> current unstyled output as default.
Looks good to me. Thank you.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
prev parent reply other threads:[~2026-03-20 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 15:31 Andrew Burgess
2026-03-20 15:48 ` Eli Zaretskii
2026-03-23 10:17 ` Andrew Burgess
2026-03-20 17:54 ` Tom Tromey [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=87y0jm8jyz.fsf@tromey.com \
--to=tom@tromey.com \
--cc=aburgess@redhat.com \
--cc=gdb-patches@sourceware.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