gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Mar 2013 16:36:27 +0000 (16:36 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Mar 2013 16:36:27 +0000 (16:36 +0000)
* dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
any successful compare_filenames_for_search or FILENAME_CMP.
* psymtab.c (partial_map_symtabs_matching_filename): Likewise.
* symtab.c (iterate_over_some_symtabs): Likewise.

gdb/ChangeLog
gdb/dwarf2read.c
gdb/psymtab.c
gdb/symtab.c

index 01a25cdddbc4cfb1fd0573d6e043f2df7eb21e98..e8eac0599b54d4e32862aff9f2e14f0cc896e844 100644 (file)
@@ -1,3 +1,11 @@
+2013-03-14  Doug Evans  <dje@google.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
+       any successful compare_filenames_for_search or FILENAME_CMP.
+       * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
+       * symtab.c (iterate_over_some_symtabs): Likewise.
+
 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * source.c (print_source_lines_base): Make a local copy of
index faee1a83304c4eb19bb76091f6e8c54780e840b8..47e4958c9e1dc0c03429c89b2c78e677fbf8fd8b 100644 (file)
@@ -3079,6 +3079,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
              if (dw2_map_expand_apply (objfile, per_cu, name, real_path,
                                        callback, data))
                return 1;
+             continue;
            }
 
          /* Before we invoke realpath, which can get expensive when many
@@ -3093,6 +3094,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
              if (dw2_map_expand_apply (objfile, per_cu, name, real_path,
                                        callback, data))
                return 1;
+             continue;
            }
 
          if (real_path != NULL)
@@ -3105,6 +3107,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
                  if (dw2_map_expand_apply (objfile, per_cu, name, real_path,
                                            callback, data))
                    return 1;
+                 continue;
                }
            }
        }
index 2965e9f5e6cfc674af01f051d96e33693538def4..7b118c5360a31ae08dbe732002b1c9b87e7700da 100644 (file)
@@ -183,6 +183,7 @@ partial_map_symtabs_matching_filename (struct objfile *objfile,
        if (partial_map_expand_apply (objfile, name, real_path,
                                      pst, callback, data))
          return 1;
+       continue;
       }
 
     /* Before we invoke realpath, which can get expensive when many
@@ -196,6 +197,7 @@ partial_map_symtabs_matching_filename (struct objfile *objfile,
        if (partial_map_expand_apply (objfile, name, real_path,
                                      pst, callback, data))
          return 1;
+       continue;
       }
 
     /* If the user gave us an absolute path, try to find the file in
@@ -209,6 +211,7 @@ partial_map_symtabs_matching_filename (struct objfile *objfile,
            if (partial_map_expand_apply (objfile, name, real_path,
                                          pst, callback, data))
              return 1;
+           continue;
          }
       }
   }
index 346c162a6622196c31c72a1801c2099777f9f40b..e62293ff69665c8e6dd5b47647127b4fbe6109b8 100644 (file)
@@ -212,6 +212,7 @@ iterate_over_some_symtabs (const char *name,
        {
          if (callback (s, data))
            return 1;
+         continue;
        }
 
     /* Before we invoke realpath, which can get expensive when many
@@ -224,6 +225,7 @@ iterate_over_some_symtabs (const char *name,
       {
        if (callback (s, data))
          return 1;
+       continue;
       }
 
     /* If the user gave us an absolute path, try to find the file in
@@ -239,6 +241,7 @@ iterate_over_some_symtabs (const char *name,
          {
            if (callback (s, data))
              return 1;
+           continue;
          }
       }
     }