From 288e77a7ac3043d465464cd670646a90709f5e96 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 14 Mar 2013 16:36:27 +0000 Subject: [PATCH] gdb/ * 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 | 8 ++++++++ gdb/dwarf2read.c | 3 +++ gdb/psymtab.c | 3 +++ gdb/symtab.c | 3 +++ 4 files changed, 17 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 01a25cdddb..e8eac0599b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2013-03-14 Doug Evans + Jan Kratochvil + + * 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 * source.c (print_source_lines_base): Make a local copy of diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index faee1a8330..47e4958c9e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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; } } } diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 2965e9f5e6..7b118c5360 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -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; } } } diff --git a/gdb/symtab.c b/gdb/symtab.c index 346c162a66..e62293ff69 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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; } } } -- 2.34.1