* 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 020a60510ad750f7c8134a3be99739c11a6bfbe8..7d6e425aeb0574715757e8e37a5383e247c629d6 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 52288e8955bd94bd23831d8a94d4353f33d7bc6e..c15926bc659d78785e5f3c5dca23af0d4d19d9dc 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.