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] Fix file name matching in expand_symtabs_matching_via_partial


On Wed, 08 May 2013 21:40:44 +0200, Doug Evans wrote:
> The test
>   (basenames_may_differ
>    || (*file_matcher) (lbasename (ps->filename), data, 1))
> fails and the code falls through assuming the file name matched.

I agree and your new code with "match" is more clear.


[...]
> +	  if (! match)
             ^^^^
###	  if (!match)

GDB Coding Style.


Sorry,
Jan


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