[commit] add some comments to dwarf2read.c
Doug Evans
dje@google.com
Wed Nov 23 19:56:00 GMT 2011
Hi.
fyi, committed.
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.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.581
diff -u -p -r1.581 dwarf2read.c
--- dwarf2read.c 15 Nov 2011 17:40:00 -0000 1.581
+++ dwarf2read.c 23 Nov 2011 19:51:36 -0000
@@ -2458,6 +2458,7 @@ dw2_lookup_symtab (struct objfile *objfi
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
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 objf
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
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;
More information about the Gdb-patches
mailing list