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: [PATCH] constify search_symbols


On 06/24/2014 09:18 PM, Tom Tromey wrote:
>>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
> 
> Yao> file_name isn't used out side of this block, so we can define file_name
> Yao> within this block of type "char *", and patch can be shorter.
> 
> The problem is that we need to set "file_names = &file_name", and you
> can't take the address of a "char *" and cast that to "const char **".
> 

Ah.  You are right.  Compiler complains on this statement "files =
&file_name".  I have no comments on this patch then.

-- 
Yao (éå)


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