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: [RFA] make first parameter of to_lookup_symbol const char *


On Mar 14, 2011, at 2:53 PM, Pedro Alves wrote:

> On Monday 14 March 2011 10:13:43, Tristan Gingold wrote:
> 
>> is there any good reason why the NAME parameter is 'char *' instead of 'const char *' ?  I can't see any of them.
> 
> Old code.  Original K&R didn't know about const.  We have a lot of places
> that could/should be const but aren't.  It's an ongoing slow cleanup.
> 
>> 
>> This patch was tested only by recompiling gdb for powerpc-elf.
>> 
>> BTW, it looks like no target defines this operation...
> 
> Are you going to add a use of it?  Otherwise, I'd rather
> just getting rid of it.

No.

Joel, can we remove that ?  I thought we were using it for dfw, but we don't anymore.

Tristan.


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