mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* psymtab.c (expand_symtabs_matching_via_partial): Fix file name
matching test.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-05-08 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* psymtab.c (expand_symtabs_matching_via_partial): Fix file name
|
||||||
|
matching test.
|
||||||
|
|
||||||
2013-05-08 Joel Brobecker <brobecker@adacore.com>
|
2013-05-08 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* sol-thread.c (info_cb): Factorize the code a little.
|
* sol-thread.c (info_cb): Factorize the code a little.
|
||||||
|
@ -1400,15 +1400,21 @@ expand_symtabs_matching_via_partial
|
|||||||
|
|
||||||
if (file_matcher)
|
if (file_matcher)
|
||||||
{
|
{
|
||||||
|
int match;
|
||||||
|
|
||||||
if (ps->anonymous)
|
if (ps->anonymous)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
match = (*file_matcher) (ps->filename, data, 0);
|
||||||
|
if (!match)
|
||||||
|
{
|
||||||
/* Before we invoke realpath, which can get expensive when many
|
/* Before we invoke realpath, which can get expensive when many
|
||||||
files are involved, do a quick comparison of the basenames. */
|
files are involved, do a quick comparison of the basenames. */
|
||||||
if (!(*file_matcher) (ps->filename, data, 0)
|
if (basenames_may_differ
|
||||||
&& (basenames_may_differ
|
|
||||||
|| (*file_matcher) (lbasename (ps->filename), data, 1))
|
|| (*file_matcher) (lbasename (ps->filename), data, 1))
|
||||||
&& !(*file_matcher) (psymtab_to_fullname (ps), data, 0))
|
match = (*file_matcher) (psymtab_to_fullname (ps), data, 0);
|
||||||
|
}
|
||||||
|
if (!match)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user