On Thu, Jan 12, 2012 at 3:42 PM, Jan Kratochvil wrote: > If you find it useful here is a patch. For lstat it is AFAIK simple. That *was* easy ;-) Could you commit it? Updated patch attached. (I also noticed incorrect use of make_cleanup; now fixed.) Thanks, -- Paul Pluzhnikov 2012-01-11 Paul Pluzhnikov PR gdb/9538 * symfile.c (find_separate_debug_file): New function. (terminate_after_last_dir_separator): Likewise. (find_separate_debug_file_by_debuglink): Also try realpath. testsuite/ChangeLog: PR gdb/9538 * gdb.base/sepdebug.exp: New test.