This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] add some comments to dwarf2read.c


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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]