* dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
authorDoug Evans <dje@google.com>
Fri, 6 Jul 2012 00:01:11 +0000 (00:01 +0000)
committerDoug Evans <dje@google.com>
Fri, 6 Jul 2012 00:01:11 +0000 (00:01 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index 020a605..7d6e425 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-05  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
+
 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
 
        * ax-gdb.c (cli/cli-utils.h): New include.
index 52288e8..c15926b 100644 (file)
@@ -3124,7 +3124,7 @@ dw2_expand_symtabs_matching
 
          /* Don't crash on bad data.  */
          if (cu_index >= (dwarf2_per_objfile->n_comp_units
-                          + dwarf2_per_objfile->n_comp_units))
+                          + dwarf2_per_objfile->n_type_units))
            continue;
 
          /* Only check the symbol's kind if it has one.