summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
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/symfile.h
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/symfile.h')
-rw-r--r--gdb/symfile.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index aec21486b78..2a0d65682f6 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -212,16 +212,17 @@ struct quick_symbol_functions
/* Read all symbol tables associated with OBJFILE. */
void (*expand_all_symtabs) (struct objfile *objfile);
- /* Read all symbol tables associated with OBJFILE which have the
- file name FILENAME.
+ /* Read all symbol tables associated with OBJFILE which have
+ symtab_to_fullname equal to FULLNAME.
This is for the purposes of examining code only, e.g., expand_line_sal.
The routine may ignore debug info that is known to not be useful with
code, e.g., DW_TAG_type_unit for dwarf debug info. */
- void (*expand_symtabs_with_filename) (struct objfile *objfile,
- const char *filename);
+ void (*expand_symtabs_with_fullname) (struct objfile *objfile,
+ const char *fullname);
/* Return the file name of the file holding the global symbol in OBJFILE
- named NAME. If no such symbol exists in OBJFILE, return NULL. */
+ named NAME. If no such symbol exists in OBJFILE, return NULL.
+ Only file extension of returned filename is recognized. */
const char *(*find_symbol_file) (struct objfile *objfile, const char *name);
/* Find global or static symbols in all tables that are in NAMESPACE