aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/sepdebug.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-11-02 14:59:53 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-11-02 14:59:53 +0000
commit24ddea6286ad7c1915e833ca5009238724ff9299 (patch)
tree37d171bcc7351a561ddc10fcbcca99faa874aa03 /gdb/testsuite/gdb.base/sepdebug.exp
parent25522fae98c65c0c8558a07638e7a5e15ed6ca1f (diff)
downloadgdb-24ddea6286ad7c1915e833ca5009238724ff9299.zip
gdb-24ddea6286ad7c1915e833ca5009238724ff9299.tar.gz
gdb-24ddea6286ad7c1915e833ca5009238724ff9299.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/sepdebug.exp')
-rw-r--r--gdb/testsuite/gdb.base/sepdebug.exp6
1 files changed, 6 insertions, 0 deletions
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}"
}