summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-03-28 18:17:38 +0000
committerDoug Evans <dje@google.com>2013-03-28 18:17:38 +0000
commit19a4647775865fa080f1ed49a0c8808bb3cd0a95 (patch)
tree1b30f543255af42e5b28370b3e67b36774cd46f5 /gdb/symfile.c
parent4eda3517ffa9b4e851b9d0dcbb25d6bfcc51a27c (diff)
downloadgdb-19a4647775865fa080f1ed49a0c8808bb3cd0a95.tar.gz
* symfile.c (find_separate_debug_file): Add comment.
(terminate_after_last_dir_separator): Tweak comment.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d8fabb1082b..edb05e4e6dd 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1408,7 +1408,9 @@ show_debug_file_directory (struct ui_file *file, int from_tty,
/* Find a separate debuginfo file for OBJFILE, using DIR as the directory
where the original file resides (may not be the same as
dirname(objfile->name) due to symlinks), and DEBUGLINK as the file we are
- looking for. Returns the name of the debuginfo, of NULL. */
+ looking for. CANON_DIR is the "realpath" form of DIR.
+ DIR must contain a trailing '/'.
+ Returns the path of the file with separate debug info, of NULL. */
static char *
find_separate_debug_file (const char *dir,
@@ -1491,7 +1493,7 @@ find_separate_debug_file (const char *dir,
return NULL;
}
-/* Modify PATH to contain only "directory/" part of PATH.
+/* Modify PATH to contain only "[/]directory/" part of PATH.
If there were no directory separators in PATH, PATH will be empty
string on return. */