diff options
author | Doug Evans <dje@google.com> | 2013-07-29 20:15:46 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-07-29 20:15:46 +0000 |
commit | abc98afe7bd6df63f0de02867a06669b21c93efb (patch) | |
tree | 9c74c9853dad05fa40c325a973bb54c448ce5ed7 /gdb/symtab.c | |
parent | 8c570d909765a5fdf9dd60b222ca962944e886e8 (diff) | |
download | gdb-abc98afe7bd6df63f0de02867a06669b21c93efb.tar.gz |
* symtab.c (iterate_over_some_symtabs): Add comment.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index ee21fe9804e..00662eafeb2 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -186,6 +186,9 @@ compare_filenames_for_search (const char *filename, const char *search_name) /* Check for a symtab of a specific name by searching some symtabs. This is a helper function for callbacks of iterate_over_symtabs. + If NAME is not absolute, then REAL_PATH is NULL + If NAME is absolute, then REAL_PATH is the gdb_realpath form of NAME. + The return value, NAME, REAL_PATH, CALLBACK, and DATA are identical to the `map_symtabs_matching_filename' method of quick_symbol_functions. @@ -230,7 +233,6 @@ iterate_over_some_symtabs (const char *name, /* 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); |