This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: remove "info dll" alias to "info sharedlibraries"?


On 12/29/14 11:54 PM, Joel Brobecker wrote:
> I noticed that windows-nat's _init function makes use of a deprecated
> feature:
> 
>   deprecated_init_ui_hook = set_windows_aliases;
> 
> ... where set_windows_aliases just creates an "info dll" alias to
> "info sharedlibraries". I think we can rid of the
> deprecated_init_ui_hook by simply call add_info_alias in the _init
> function, but I'm actually wondering why we wouldn't be able to
> just deprecate and then delete the command altogether. We've already
> trained the users to use the "sharedlibrary" command, so "info
> sharedlibrary" should be easy, and it'll be more consistent with
> other targets.

What's the basis for believing that "we've already trained the users"?

With a little poking around the net, I did notice a couple examples
where people were reporting "info dll" results.  But in practice I
suspect that most GDB-using Windows developers are working on multiple
platforms, and they're likely to prefer commands that work everywhere.

On the other hand, "info dll" has been documented for a long time,
and is only one line of extra code - seems like more work to remove
than to leave it alone.

I do think we can dump the hook and just use add_info_alias.  I don't
remember exactly why the hook seemed necessary in the first place, but
the timing suggests I added it for gdbtk or MPW (or both. :-) ).

Stan
stan@codesourcery.com




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]