diff options
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index a3908f2b098..ec0ea56063b 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -972,8 +972,6 @@ find_methods (char type, const char *theclass, const char *category, const char *selector, std::vector<const char *> *symbol_names) { - struct objfile *objfile = NULL; - const char *symname = NULL; char ntype = '\0'; @@ -986,7 +984,7 @@ find_methods (char type, const char *theclass, const char *category, gdb_assert (symbol_names != NULL); - ALL_OBJFILES (objfile) + for (objfile *objfile : all_objfiles (current_program_space)) { unsigned int *objc_csym; struct minimal_symbol *msymbol = NULL; |