aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-07-29 20:04:16 +0000
committerDoug Evans <dje@google.com>2013-07-29 20:04:16 +0000
commita94e8645ac9603d401346663d3ef81ed736b0353 (patch)
tree5b1011b6f6e384f9b7da9a260fada08cd6d0735f /gdb/symtab.c
parent234d4ab880bf72f0a0c678c551d8245e32ce86fc (diff)
downloadgdb-a94e8645ac9603d401346663d3ef81ed736b0353.zip
gdb-a94e8645ac9603d401346663d3ef81ed736b0353.tar.gz
gdb-a94e8645ac9603d401346663d3ef81ed736b0353.tar.bz2
* symtab.c (iterate_over_some_symtabs): Fix indentation.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 9040035..ee21fe9 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -215,35 +215,35 @@ iterate_over_some_symtabs (const char *name,
continue;
}
- /* Before we invoke realpath, which can get expensive when many
- files are involved, do a quick comparison of the basenames. */
- if (! basenames_may_differ
- && 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;
+ /* Before we invoke realpath, which can get expensive when many
+ files are involved, do a quick comparison of the basenames. */
+ if (! basenames_may_differ
+ && FILENAME_CMP (base_name, lbasename (s->filename)) != 0)
continue;
- }
- /* If the user gave us an absolute path, try to find the file in
- this symtab and use its absolute path. */
+ if (compare_filenames_for_search (symtab_to_fullname (s), name))
+ {
+ if (callback (s, data))
+ return 1;
+ continue;
+ }
+
+ /* If the user gave us an absolute path, try to find the file in
+ this symtab and use its absolute path. */
- if (real_path != NULL)
- {
- const char *fullname = symtab_to_fullname (s);
+ if (real_path != NULL)
+ {
+ const char *fullname = symtab_to_fullname (s);
- gdb_assert (IS_ABSOLUTE_PATH (real_path));
- gdb_assert (IS_ABSOLUTE_PATH (name));
- if (FILENAME_CMP (real_path, fullname) == 0)
- {
- if (callback (s, data))
- return 1;
- continue;
- }
- }
+ gdb_assert (IS_ABSOLUTE_PATH (real_path));
+ gdb_assert (IS_ABSOLUTE_PATH (name));
+ if (FILENAME_CMP (real_path, fullname) == 0)
+ {
+ if (callback (s, data))
+ return 1;
+ continue;
+ }
+ }
}
return 0;