From 7932255de56fb99836b2e712e7dbcfdd5e1f1309 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 16 Jan 2019 07:18:58 -0700 Subject: Make minimal symbol range adapter a method on objfile This removes class objfile_msymbols in favor of a method on the objfile. 2019-01-16 Tom Tromey * objfiles.h (struct minimal_symbol_iterator): Rename. Move earlier. (struct objfile) : Move from top level. : New method. (class objfile_msymbols): Remove. * symtab.c (default_collect_symbol_completion_matches_break_on): Update. * symmisc.c (dump_msymbols): Update. * stabsread.c (scan_file_globals): Update. * objc-lang.c (info_selectors_command, info_classes_command) (find_methods): Update. * minsyms.c (find_solib_trampoline_target): Update. * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update. * coffread.c (coff_symfile_read): Update. * ada-lang.c (ada_lookup_simple_minsym) (ada_collect_symbol_completion_matches): Update. --- gdb/objc-lang.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/objc-lang.c') diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index accd378..ceef482 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -607,7 +607,7 @@ info_selectors_command (const char *regexp, int from_tty) /* First time thru is JUST to get max length and count. */ for (objfile *objfile : current_program_space->objfiles ()) { - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { QUIT; name = MSYMBOL_NATURAL_NAME (msymbol); @@ -647,7 +647,7 @@ info_selectors_command (const char *regexp, int from_tty) matches = 0; for (objfile *objfile : current_program_space->objfiles ()) { - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { QUIT; name = MSYMBOL_NATURAL_NAME (msymbol); @@ -761,7 +761,7 @@ info_classes_command (const char *regexp, int from_tty) /* First time thru is JUST to get max length and count. */ for (objfile *objfile : current_program_space->objfiles ()) { - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { QUIT; name = MSYMBOL_NATURAL_NAME (msymbol); @@ -788,7 +788,7 @@ info_classes_command (const char *regexp, int from_tty) matches = 0; for (objfile *objfile : current_program_space->objfiles ()) { - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { QUIT; name = MSYMBOL_NATURAL_NAME (msymbol); @@ -1008,7 +1008,7 @@ find_methods (char type, const char *theclass, const char *category, /* There are no ObjC symbols in this objfile. Skip it entirely. */ continue; - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { QUIT; -- cgit v1.1