aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2011-06-02 18:44:01 +0000
committerKeith Seitz <keiths@redhat.com>2011-06-02 18:44:01 +0000
commit8dfd1e6d6ee42d903a027e42670ef8d3553678c3 (patch)
tree879f06345ffd44ce0601eb2e822a805c951be58b /gdb
parent26d97720ed597caf769e6f16e6e7c1f8e385f9c7 (diff)
downloadgdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.zip
gdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.tar.gz
gdb-8dfd1e6d6ee42d903a027e42670ef8d3553678c3.tar.bz2
* objc-lang.c (find_methods): Increment objfile_csym earlier.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/objc-lang.c4
2 files changed, 6 insertions, 2 deletions
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 <keiths@redhat.com>
+
+ * objc-lang.c (find_methods): Increment objfile_csym earlier.
+
2011-06-02 Pedro Alves <pedro@codesourcery.com>
* 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,
&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;