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/dbxread.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/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 25bcc27..60d384b 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2011,7 +2011,7 @@ dbx_end_psymtab (struct objfile *objfile, struct partial_symtab *pst, address, set it to our starting address. Take care to not set our own ending address to our starting address. */ - for (partial_symtab *p1 : objfile_psymtabs (objfile)) + for (partial_symtab *p1 : objfile->psymtabs ()) if (!p1->text_high_valid && p1->text_low_valid && p1 != pst) p1->set_text_high (pst->raw_text_low ()); } |