diff options
author | Keith Seitz <keiths@redhat.com> | 2011-06-02 18:44:01 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2011-06-02 18:44:01 +0000 |
commit | 8dfd1e6d6ee42d903a027e42670ef8d3553678c3 (patch) | |
tree | 879f06345ffd44ce0601eb2e822a805c951be58b /gdb/objc-lang.c | |
parent | 26d97720ed597caf769e6f16e6e7c1f8e385f9c7 (diff) | |
download | gdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.zip gdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.tar.gz gdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.tar.bz2 |
* objc-lang.c (find_methods): Increment objfile_csym earlier.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |