[PATCH 15/24] Introduce rename_cmd
Pedro Alves
palves@redhat.com
Thu May 30 20:01:00 GMT 2019
On 5/30/19 11:22 AM, Philippe Waroquiers wrote:
> On Wed, 2019-05-29 at 19:30 +0100, Pedro Alves wrote:
>> On 5/29/19 5:03 PM, Pedro Alves wrote:
>>
>>> There are other ways to implement this. I could move the
>>> "raw-frame-arguments" option_def out of the frame_print_option_defs
>>> array, so that it doesn't get installed as a command, and leave the
>>> "set print raw frame-arguments" add_setshow... call in place.
>>> I guess it wouldn't be a big deal.
>>
>> So turns out the change would be pretty simple.
>>
>> I'm undecided which version to use... I suppose this version
>> is simpler and a little bit more efficient. Preferences?
>
> As 'frame-arguments' is the only command that uses the prefix 'set print raw'
> and that this prefix should not be used for further options, I would mark
> 'set print raw' obsolete, to avoid an inconsistency (at user level)
> only for this option.
> But not a big deal ...
Alright, you've convinced me. And it turned out to be quite simple.
I don't remember exactly what problems I had run into the first time...
I've now posted a v2 of the series,
https://sourceware.org/ml/gdb-patches/2019-05/msg00712.html
Of course I forgot to mention that I pushed it to
users/palves/cli-options-v2...
I've kept the v1 branch around for now, if someone wants to
compare, renamed to users/palves/cli-options-v1.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list