This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patch: 'show args' -vs- '--args'
On Thu, Feb 28, 2008 at 09:00:43AM -0700, Tom Tromey wrote:
> I suppose it could if we did this:
>
> deprecated_show_value_hack (file, from_tty, c, get_inferior_args ());
>
> i.e., we didn't print the passed-in value -- that value is already
> known to be wrong.
>
> It seems a little weird to do this, given that this function is named
> 'deprecated_...', and given that there is an existing hook that does
> exactly what is needed here. That aid I'm happy to resubmit a patch
> based on this idea if that is what you want, just let me know.
I'm fine with either the above, or setting pre_show_hook manually; I
didn't like add_setshow_optional_filename_cmd having a different
signature than all the similar setshow functions.
--
Daniel Jacobowitz
CodeSourcery