diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-10 16:23:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-10 07:08:10 -0700 |
commit | 939652a515a10654b16b97e7e2ea39c013714850 (patch) | |
tree | 1a5d876a335a92854a0c2cc851d7b1d9735acd1e /gdb/xcoffread.c | |
parent | baa62830ed84d45b414ff677b7bce900a21923ce (diff) | |
download | gdb-939652a515a10654b16b97e7e2ea39c013714850.zip gdb-939652a515a10654b16b97e7e2ea39c013714850.tar.gz gdb-939652a515a10654b16b97e7e2ea39c013714850.tar.bz2 |
Remove parameters from start_psymtab_common
start_psymtab_common takes references to the global_psymbols and
static_psymbols vectors, but it also has an objfile parameter. This
is redundant, so this patch simplifies the function by removing those
reference parameters.
gdb/ChangeLog
2019-01-10 Tom Tromey <tom@tromey.com>
* xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
static_psymbols parameters.
(scan_xcoff_symtab): Update.
* psymtab.c (start_psymtab_common): Remove global_psymbols and
static_psymbols parameters.
* psympriv.h (start_psymtab_common): Update.
* mdebugread.c (parse_partial_symbols): Update.
* dwarf2read.c (create_partial_symtab): Update.
* dbxread.c (read_dbx_symtab): Update.
(start_psymtab): Remove global_psymbols and static_psymbols
parameters.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 41ff583..59de19c 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2026,16 +2026,13 @@ static unsigned int first_fun_line_offset; static struct partial_symtab * xcoff_start_psymtab (struct objfile *objfile, - const char *filename, int first_symnum, - std::vector<partial_symbol *> &global_psymbols, - std::vector<partial_symbol *> &static_psymbols) + const char *filename, int first_symnum) { struct partial_symtab *result = start_psymtab_common (objfile, filename, /* We fill in textlow later. */ - 0, - global_psymbols, static_psymbols); + 0); result->read_symtab_private = XOBNEW (&objfile->objfile_obstack, struct symloc); @@ -2317,9 +2314,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, pst = xcoff_start_psymtab (objfile, filestring, - symnum_before, - objfile->global_psymbols, - objfile->static_psymbols); + symnum_before); } } /* Activate the misc_func_recorded mechanism for @@ -2501,9 +2496,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, pst = xcoff_start_psymtab (objfile, filestring, - symnum_before, - objfile->global_psymbols, - objfile->static_psymbols); + symnum_before); last_csect_name = NULL; } break; |