]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (dw2_lookup_symtab): Add comment.
authorDoug Evans <dje@google.com>
Wed, 23 Nov 2011 19:55:42 +0000 (19:55 +0000)
committerDoug Evans <dje@google.com>
Wed, 23 Nov 2011 19:55:42 +0000 (19:55 +0000)
(dw2_expand_symtabs_with_filename): Ditto.
(dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames): Ditto.

gdb/ChangeLog
gdb/dwarf2read.c

index 0585e1ea15e809cd7d710bb79afb3193b95e4b14..03978995a400cc1b52851eecb5ee53afc725a277 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-23  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dw2_lookup_symtab): Add comment.
+       (dw2_expand_symtabs_with_filename): Ditto.
+       (dw2_expand_symtabs_matching): Ditto.
+       (dw2_map_symbol_filenames): Ditto.
+
 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
 
        * ada-lang.c (assign_aggregate): Minor reformatting.
index 5e279de20ce3dec6dc4a72e479500e167023e2cd..3f66c676fdfd2329f4cb84c4df3e55e365a65489 100644 (file)
@@ -2458,6 +2458,7 @@ dw2_lookup_symtab (struct objfile *objfile, const char *name,
       struct dwarf2_per_cu_data *per_cu = dw2_get_cu (i);
       struct quick_file_names *file_data;
 
+      /* We only need to look at symtabs not already expanded.  */
       if (per_cu->v.quick->symtab)
        continue;
 
@@ -2640,6 +2641,7 @@ dw2_expand_symtabs_with_filename (struct objfile *objfile,
       struct dwarf2_per_cu_data *per_cu = dw2_get_cu (i);
       struct quick_file_names *file_data;
 
+      /* We only need to look at symtabs not already expanded.  */
       if (per_cu->v.quick->symtab)
        continue;
 
@@ -2744,6 +2746,8 @@ dw2_expand_symtabs_matching (struct objfile *objfile,
        struct quick_file_names *file_data;
 
        per_cu->v.quick->mark = 0;
+
+       /* We only need to look at symtabs not already expanded.  */
        if (per_cu->v.quick->symtab)
          continue;
 
@@ -2831,6 +2835,7 @@ dw2_map_symbol_filenames (struct objfile *objfile, symbol_filename_ftype *fun,
       struct dwarf2_per_cu_data *per_cu = dw2_get_cu (i);
       struct quick_file_names *file_data;
 
+      /* We only need to look at symtabs not already expanded.  */
       if (per_cu->v.quick->symtab)
        continue;