From 24ddea6286ad7c1915e833ca5009238724ff9299 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 2 Nov 2009 14:59:53 +0000 Subject: gdb/ * symfile.c (build_id_to_debug_filename): New variable debugdir. Move variables size, s and data into a new inner block. Change xmalloc for alloca, use direct BUILDID->SIZE there now. Loop for the DEBUG_FILE_DIRECTORY components. (find_separate_debug_file): New variable debugdir and debugdir_end. Loop for the DEBUG_FILE_DIRECTORY components. (_initialize_symfile): For "debug-file-directory" use plural and note one can use multiple components now. gdb/doc/ * gdb.texinfo (set debug-file-directory, show debug-file-directory) (Auto-loading): Use plural and note one can use multiple components now. gdb/testsuite/ * gdb.base/sepdebug.exp: New test_different_dir call for multiple-dirs. --- gdb/testsuite/gdb.base/sepdebug.exp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/testsuite/gdb.base/sepdebug.exp') diff --git a/gdb/testsuite/gdb.base/sepdebug.exp b/gdb/testsuite/gdb.base/sepdebug.exp index 01d64ad..1339170 100644 --- a/gdb/testsuite/gdb.base/sepdebug.exp +++ b/gdb/testsuite/gdb.base/sepdebug.exp @@ -995,6 +995,12 @@ if ![string compare $build_id_debug_filename ""] then { test_different_dir build-id "${objdir}/${subdir}" $xfail + # Test also multiple directories can be specified. Without the build-id + # reference GDB would find the separate debug info just at the same + # location as the executable file. + + test_different_dir multiple-dirs "/doesnotexist:${objdir}/${subdir}" $xfail + # Spare debug files may confuse testsuite runs in the future. remote_exec build "rm -f ${objdir}/${subdir}/${build_id_debug_filename}" } -- cgit v1.1