diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-16 07:18:58 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-17 15:43:37 -0700 |
commit | 7932255de56fb99836b2e712e7dbcfdd5e1f1309 (patch) | |
tree | 760e3e52755717ebbe3f4092ff37e425ff062687 /gdb/minsyms.c | |
parent | 604b1bfb46e62d561698397cb5499b487eb0db34 (diff) | |
download | gdb-7932255de56fb99836b2e712e7dbcfdd5e1f1309.zip gdb-7932255de56fb99836b2e712e7dbcfdd5e1f1309.tar.gz gdb-7932255de56fb99836b2e712e7dbcfdd5e1f1309.tar.bz2 |
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 <tom@tromey.com>
* objfiles.h (struct minimal_symbol_iterator): Rename. Move
earlier.
(struct objfile) <msymbols_range>: Move from top level.
<msymbols>: 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.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 053c93e..7cd7ba9 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1494,7 +1494,7 @@ find_solib_trampoline_target (struct frame_info *frame, CORE_ADDR pc) { for (objfile *objfile : current_program_space->objfiles ()) { - for (minimal_symbol *msymbol : objfile_msymbols (objfile)) + for (minimal_symbol *msymbol : objfile->msymbols ()) { /* Also handle minimal symbols pointing to function descriptors. */ |