This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] mixed source+assembly from cli disassemble
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 16 Apr 2008 11:55:35 -0700
- Subject: Re: [RFA] mixed source+assembly from cli disassemble
- References: <20080404003857.A5A451C72B9@localhost>
> 2008-04-03 Doug Evans <firstname.lastname@example.org>
> * cli/cli-cmds.c (print_disassembly): New fn.
> (disassemble_current_function): New fn.
> (disassemble_command): Recognize /s modifier, print mixed
> (init_cli_cmds): Update disassemble help text.
MichaelS already approved the patch, and I agree with him. I had some
comments, and a request so I'm sending them now.
First, the request: Can you also write up a NEWS entry? I think this
is a great addition and it deserves a mention in NEWS.
The ChangeLog is missing the entry for the documentation update. Please
make sure that EliZ has seen it before checking in. I'm not sure
whether this is the case or not anymore.
I also personally prefer to avoid abbreviations such as "fn", although
the GNU coding standards say nothing against them - so it may only be
a personally preference. I see that it has been use a few times in
the past, but most uses is in the 90s. Don't change it unless other
maintainers agree that it should be changed.
> + printf_filtered ("from ");
> + deprecated_print_address_numeric (low, 1, gdb_stdout);
> + printf_filtered (" to ");
> + deprecated_print_address_numeric (high, 1, gdb_stdout);
> + printf_filtered (":\n");
While you are modifying this code, I think the following should work too:
printf_filtered ("form %s to %s:\n", paddress (low), paddress (high));
Not only does this help us get rid of a couple of uses of deprecated
functions, I believe it's also better for i18n.
Other than that, thanks for doing the work! I'll definitely enjoy
this new feature :).