From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: dje@google.com
Cc: teawater@gmail.com, gdb-patches@sourceware.org
Subject: Re: Add a new modifier /c to "disassemble" command to make it output binary code
Date: Fri, 10 Jul 2009 14:34:00 -0000 [thread overview]
Message-ID: <200907100933.n6A9Xfxk000967@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <e394668d0907091500l139a21dfg1ef6651c7b1e260e@mail.gmail.com> (message from Doug Evans on Thu, 9 Jul 2009 15:00:32 -0700)
> Date: Thu, 9 Jul 2009 15:00:32 -0700
> From: Doug Evans <dje@google.com>
>
> On Wed, Jul 8, 2009 at 11:35 PM, Hui Zhu<teawater@gmail.com> wrote:
> > Hi,
> >
> > The objdump will output the binary code when it works but gdb not.
> > I make a patch to add a new modifier /c to "disassemble" command to
> > make it output binary code.
> > Please help me review it.
>
> I like the idea.
> The option to objdump is --[no-]show-raw-insn.
> The word "raw" is the mnemonic I use to remember the option name.
> Hence I wonder if it would be easier for users to remember
> "disassemble /r" than "disassemble /c".
> [nit picky, I know]
Actually I think you have a point here. The term "code" is horribly
overloaded, so I felt a bit uncomfortable with the fact that the newly
added argument to print_disassembly carried that name:
>> static void
>> print_disassembly (struct gdbarch *gdbarch, const char *name,
>> - CORE_ADDR low, CORE_ADDR high, int mixed)
>> + CORE_ADDR low, CORE_ADDR high, int mixed, int code)
If people agree with Doug and me that /r is better than /c, can the
code be changed to match this?
prev parent reply other threads:[~2009-07-10 9:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 12:22 Hui Zhu
2009-07-09 19:22 ` Tom Tromey
2009-07-09 19:40 ` Eli Zaretskii
2009-07-11 9:28 ` Hui Zhu
2009-07-11 12:42 ` Eli Zaretskii
2009-07-11 14:15 ` Hui Zhu
2009-07-11 17:54 ` Eli Zaretskii
2009-07-11 17:59 ` Hui Zhu
2009-07-11 18:16 ` Regression for mi-disassemble.exp [Re: Add a new modifier /c to "disassemble" command to make it output binary code] Jan Kratochvil
2009-07-17 17:09 ` [commit] Fix mi-disassemble.exp regression Ulrich Weigand
2009-07-18 5:45 ` Hui Zhu
2009-07-09 19:53 ` Add a new modifier /c to "disassemble" command to make it output binary code Eli Zaretskii
2009-07-09 22:00 ` Michael Snyder
2009-07-09 23:44 ` Doug Evans
2009-07-10 9:33 ` Eli Zaretskii
2009-07-10 14:34 ` Mark Kettenis [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=200907100933.n6A9Xfxk000967@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=teawater@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