On Thu, Jan 12, 2012 at 4:27 PM, Jan Kratochvil wrote: > On Fri, 13 Jan 2012 01:20:37 +0100, Paul Pluzhnikov wrote: >> Could you commit it? > > Feel free to commit it along.  The patch looks fine to me but maybe keep it > here for a day or two. Ok, thanks. >> Updated patch attached. (I also noticed incorrect use of make_cleanup; >> now fixed.) > > It would be easy to remove the last "goto" there now when cleanups are in use. Done. Combined patch attached. -- Paul Pluzhnikov 2012-01-11 Paul Pluzhnikov Jan Kratochvil 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. * configure.ac (AC_CHECK_FUNCS): Add lstat. * configure: Regenerate. * config.in: Regenerate. testsuite/ChangeLog: PR gdb/9538 * gdb.base/sepdebug.exp: New test.