diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-16 06:37:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-17 15:42:05 -0700 |
commit | f252c6d5dc49cb27838e153e863f16ea7895859e (patch) | |
tree | 4b84a64f29b3e1318eead66fc233483a04a931a5 /gdb/psymtab.c | |
parent | b669c95337903d39aa2254e8ea0405c0ac117d24 (diff) | |
download | gdb-f252c6d5dc49cb27838e153e863f16ea7895859e.zip gdb-f252c6d5dc49cb27838e153e863f16ea7895859e.tar.gz gdb-f252c6d5dc49cb27838e153e863f16ea7895859e.tar.bz2 |
Make psymtab range adapter a method on objfile
This removes the objfile_psymtabs class in favor of a method on
objfile and on psymtab_storage.
2019-01-16 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile) <psymtabs>: New method.
(class objfile_psymtabs): Remove.
* psymtab.h (class psymtab_storage) <partial_symtab_range>: New
typedef.
<range>: New method.
(require_partial_symbols): Change return type.
* psymtab.c (require_partial_symbols)
(psym_expand_symtabs_matching): Update.
* mdebugread.c (parse_partial_symbols): Update.
* dbxread.c (dbx_end_psymtab): Update.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 776f59c..17db297 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -104,7 +104,7 @@ psymtab_storage::allocate_psymtab () /* See psymtab.h. */ -objfile_psymtabs +psymtab_storage::partial_symtab_range require_partial_symbols (struct objfile *objfile, int verbose) { if ((objfile->flags & OBJF_PSYMTABS_READ) == 0) @@ -129,7 +129,7 @@ require_partial_symbols (struct objfile *objfile, int verbose) } } - return objfile_psymtabs (objfile); + return objfile->psymtabs (); } /* Helper function for psym_map_symtabs_matching_filename that @@ -1341,7 +1341,7 @@ psym_expand_symtabs_matching for (partial_symtab *ps : require_partial_symbols (objfile, 1)) ps->searched_flag = PST_NOT_SEARCHED; - for (partial_symtab *ps : objfile_psymtabs (objfile)) + for (partial_symtab *ps : objfile->psymtabs ()) { QUIT; |