]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
commit e19080df1d502deede4535c302971847b699da2c
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 2 Jul 2011 19:41:34 +0000 (19:41 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 2 Jul 2011 19:41:34 +0000 (19:41 +0000)
Author: Keith Seitz <keiths@redhat.com>
Date:   Thu Jun 2 18:43:59 2011 +0000

gdb/
* objc-lang.c (find_methods): Increment objfile_csym earlier.

gdb/ChangeLog
gdb/objc-lang.c

index 81ea092e49f0306cee9573ed65ad5c2b8df8dfee..fc26e13e2f010090c3e4a403b9960c2c69cdac19 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-02  Keith Seitz  <keiths@redhat.com>
+
+       * objc-lang.c (find_methods): Increment objfile_csym earlier.
+
 2011-07-02  Keith Seitz  <keiths@redhat.com>
 
        PR c++/12750
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;