summaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-02-03 16:03:06 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-02-03 16:03:06 +0000
commitb805df23e04cdf6b6c8252ca6ccf488139dd4cb1 (patch)
tree416381661075451247377fd64dbaaec800e97c9c /gdb/psymtab.c
parented4d9dacb69f998899d48d8d9678de87938da7d8 (diff)
downloadgdb-b805df23e04cdf6b6c8252ca6ccf488139dd4cb1.tar.gz
gdb/
Code cleanup. * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ... (dw2_expand_symtabs_with_fullname): ... here. Rename parameter filename to fullname. Rename variable this_name to this_fullname. Lowercase FILENAME_CMP call. (dw2_find_symbol_file): New comment for the returned string. (dwarf2_gdb_index_functions): Rename the function to dw2_expand_symtabs_with_fullname. * psymtab.c (read_psymtabs_with_filename): Rename to ... (read_psymtabs_with_fullname): ... here. Rename parameter filename to fullname. (psym_functions): Rename the function to read_psymtabs_with_fullname. * symfile.h (struct quick_symbol_functions): Rename field expand_symtabs_with_filename to expand_symtabs_with_fullname and its parameter filename to fullname. Document returned string meaning for find_symbol_file. * symtab.c (find_line_symtab): Rename the called function to expand_symtabs_with_fullname.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 4e5ffb8da18..c6f994e5f76 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1096,7 +1096,7 @@ expand_partial_symbol_tables (struct objfile *objfile)
}
static void
-read_psymtabs_with_filename (struct objfile *objfile, const char *filename)
+read_psymtabs_with_fullname (struct objfile *objfile, const char *fullname)
{
struct partial_symtab *p;
@@ -1106,7 +1106,7 @@ read_psymtabs_with_filename (struct objfile *objfile, const char *filename)
if (p->anonymous)
continue;
- if (filename_cmp (filename, p->filename) == 0)
+ if (filename_cmp (fullname, p->filename) == 0)
psymtab_to_symtab (objfile, p);
}
}
@@ -1401,7 +1401,7 @@ const struct quick_symbol_functions psym_functions =
relocate_psymtabs,
read_symtabs_for_function,
expand_partial_symbol_tables,
- read_psymtabs_with_filename,
+ read_psymtabs_with_fullname,
find_symbol_file_from_partial,
map_matching_symbols_psymtab,
expand_symtabs_matching_via_partial,