This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: remove "info dll" alias to "info sharedlibraries"?
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>, Stan Shebs <stanshebs at earthlink dot net>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 05 Jan 2015 17:34:40 +0000
- Subject: Re: RFC: remove "info dll" alias to "info sharedlibraries"?
- Authentication-results: sourceware.org; auth=none
- References: <20141230075437 dot GG2123 at adacore dot com> <54A333AE dot 1030904 at earthlink dot net> <20141231073147 dot GB5445 at adacore dot com>
On 12/31/2014 07:31 AM, Joel Brobecker wrote:
>> What's the basis for believing that "we've already trained the users"?
>
> We've made the "dll-*" commands deprecated, and now just removed them.
>
>> 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.
>
> I only found a couple of instances myself, from 2005 and 2008.
>
>> 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. :-) ).
>
> But I agree it's been documented for a long time. Let's see if I
> can just keep the alias without the hook (on my next rainy day :-)).
If it stays, it's best to move it to windows-tdep.c so that it's
available when cross debugging Windows from a non-Windows host too.
Or to solib.c, even.
Thanks,
Pedro Alves