* objc-lang.c (find_methods): Increment objfile_csym earlier.
authorKeith Seitz <keiths@redhat.com>
Thu, 2 Jun 2011 18:44:01 +0000 (18:44 +0000)
committerKeith Seitz <keiths@redhat.com>
Thu, 2 Jun 2011 18:44:01 +0000 (18:44 +0000)
gdb/ChangeLog
gdb/objc-lang.c

index 0cb91e32ff31393e1dadcb9412787957922b58c0..182909d482e44e3c0750a95feaac6207d8dfa227 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-02  Keith Seitz  <keiths@redhat.com>
+
+       * objc-lang.c (find_methods): Increment objfile_csym earlier.
+
 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
 
        * top.h (simplified_command_loop): Delete declaration.
index dfa5388fb3156bbe582963d37a511c215be6085c..592b52e3ca2c25a39427b3dd624d3165893cd0f5 100644 (file)
@@ -1221,6 +1221,8 @@ find_methods (struct symtab *symtab, char type,
          pc = gdbarch_convert_from_func_ptr_addr (gdbarch, pc,
                                                   &current_target);
 
+         objfile_csym++;
+
          if (symtab)
            if (pc < BLOCK_START (block) || pc >= BLOCK_END (block))
              /* Not in the specified symtab.  */
@@ -1237,8 +1239,6 @@ find_methods (struct symtab *symtab, char type,
          if (parse_method (tmp, &ntype, &nclass,
                            &ncategory, &nselector) == NULL)
            continue;
-      
-         objfile_csym++;
 
          if ((type != '\0') && (ntype != type))
            continue;