Patch: 'show args' -vs- '--args'

Daniel Jacobowitz drow@false.org
Thu Feb 28 16:57:00 GMT 2008


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



More information about the Gdb-patches mailing list