Add directory-reading of debug info to cachegrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6839 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
index 21bc4e8..35f2632 100644
--- a/cachegrind/cg_annotate.in
+++ b/cachegrind/cg_annotate.in
@@ -747,7 +747,9 @@
 
         my $opened_file = "";
         my $full_file_name = "";
-        foreach my $include_dir (@include_dirs) {
+        # We first try it with the empty include_dir, in case the filename has
+        # the full path.
+        foreach my $include_dir ("", @include_dirs) {
             my $try_name = $include_dir . $src_file;
             if (open(INPUTFILE, "< $try_name")) {
                 $opened_file    = $try_name;