From: Keith Seitz Date: Thu, 2 Jun 2011 18:44:01 +0000 (+0000) Subject: * objc-lang.c (find_methods): Increment objfile_csym earlier. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8dfd1e6d6ee42d903a027e42670ef8d3553678c3;p=binutils-gdb.git * objc-lang.c (find_methods): Increment objfile_csym earlier. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cb91e32ff3..182909d482e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-06-02 Keith Seitz + + * objc-lang.c (find_methods): Increment objfile_csym earlier. + 2011-06-02 Pedro Alves * top.h (simplified_command_loop): Delete declaration. diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index dfa5388fb31..592b52e3ca2 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -1221,6 +1221,8 @@ find_methods (struct symtab *symtab, char type, pc = gdbarch_convert_from_func_ptr_addr (gdbarch, pc, ¤t_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;