mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* symtab.c (iterate_over_some_symtabs): Fix indentation.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2013-07-29 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* symtab.c (iterate_over_some_symtabs): Fix indentation.
|
||||||
|
|
||||||
2013-07-27 Yao Qi <yao@codesourcery.com>
|
2013-07-27 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* NEWS: Mention that GDBserver now supports hardware
|
* NEWS: Mention that GDBserver now supports hardware
|
||||||
|
50
gdb/symtab.c
50
gdb/symtab.c
@ -215,35 +215,35 @@ iterate_over_some_symtabs (const char *name,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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 (! basenames_may_differ
|
if (! basenames_may_differ
|
||||||
&& FILENAME_CMP (base_name, lbasename (s->filename)) != 0)
|
&& FILENAME_CMP (base_name, lbasename (s->filename)) != 0)
|
||||||
continue;
|
|
||||||
|
|
||||||
if (compare_filenames_for_search (symtab_to_fullname (s), name))
|
|
||||||
{
|
|
||||||
if (callback (s, data))
|
|
||||||
return 1;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
/* If the user gave us an absolute path, try to find the file in
|
if (compare_filenames_for_search (symtab_to_fullname (s), name))
|
||||||
this symtab and use its absolute path. */
|
{
|
||||||
|
if (callback (s, data))
|
||||||
|
return 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (real_path != NULL)
|
/* If the user gave us an absolute path, try to find the file in
|
||||||
{
|
this symtab and use its absolute path. */
|
||||||
const char *fullname = symtab_to_fullname (s);
|
|
||||||
|
|
||||||
gdb_assert (IS_ABSOLUTE_PATH (real_path));
|
if (real_path != NULL)
|
||||||
gdb_assert (IS_ABSOLUTE_PATH (name));
|
{
|
||||||
if (FILENAME_CMP (real_path, fullname) == 0)
|
const char *fullname = symtab_to_fullname (s);
|
||||||
{
|
|
||||||
if (callback (s, data))
|
gdb_assert (IS_ABSOLUTE_PATH (real_path));
|
||||||
return 1;
|
gdb_assert (IS_ABSOLUTE_PATH (name));
|
||||||
continue;
|
if (FILENAME_CMP (real_path, fullname) == 0)
|
||||||
}
|
{
|
||||||
}
|
if (callback (s, data))
|
||||||
|
return 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user