From 7edbb660ff9bc48e3facb398a20fb0fad92a4782 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 28 Mar 2013 18:17:38 +0000 Subject: [PATCH] * symfile.c (find_separate_debug_file): Add comment. (terminate_after_last_dir_separator): Tweak comment. --- gdb/ChangeLog | 3 +++ gdb/symfile.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a165c2611e..f8c393b9b5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2013-03-28 Doug Evans + * symfile.c (find_separate_debug_file): Add comment. + (terminate_after_last_dir_separator): Tweak comment. + * dwarf2read.c (create_partial_symtab): Add forward decl. (create_partial_symtab): Move to be closer to other psymtab functions. (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto. 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. */ -- 2.30.2