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-Tag: sid-snapshot-20110701~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8dfd1e6d6ee42d903a027e42670ef8d3553678c3;p=platform%2Fupstream%2Fbinutils.git * objc-lang.c (find_methods): Increment objfile_csym earlier. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cb91e3..182909d 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 dfa5388..592b52e 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;