From: Jan Kratochvil Date: Sat, 2 Jul 2011 19:41:34 +0000 (+0000) Subject: commit e19080df1d502deede4535c302971847b699da2c X-Git-Tag: gdb_7_3-2011-07-26-release~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754578bf68f3e49393741c53a048ea6dd81389fb;p=thirdparty%2Fbinutils-gdb.git commit e19080df1d502deede4535c302971847b699da2c Author: Keith Seitz Date: Thu Jun 2 18:43:59 2011 +0000 gdb/ * objc-lang.c (find_methods): Increment objfile_csym earlier. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81ea092e49f..fc26e13e2f0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-07-02 Keith Seitz + + * objc-lang.c (find_methods): Increment objfile_csym earlier. + 2011-07-02 Keith Seitz PR c++/12750 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;