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


>>>>> "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 **".

Tom


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