summaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-10 16:23:45 -0600
committerTom Tromey <tom@tromey.com>2019-01-10 07:08:10 -0700
commit939652a515a10654b16b97e7e2ea39c013714850 (patch)
tree1a5d876a335a92854a0c2cc851d7b1d9735acd1e /gdb/psymtab.c
parentbaa62830ed84d45b414ff677b7bce900a21923ce (diff)
downloadbinutils-gdb-939652a515a10654b16b97e7e2ea39c013714850.tar.gz
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/psymtab.c')
-rw-r--r--gdb/psymtab.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 1a54ea9c8e4..8e467860952 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1469,17 +1469,15 @@ sort_pst_symbols (struct objfile *objfile, struct partial_symtab *pst)
struct partial_symtab *
start_psymtab_common (struct objfile *objfile,
const char *filename,
- CORE_ADDR textlow,
- std::vector<partial_symbol *> &global_psymbols,
- std::vector<partial_symbol *> &static_psymbols)
+ CORE_ADDR textlow)
{
struct partial_symtab *psymtab;
psymtab = allocate_psymtab (filename, objfile);
psymtab->set_text_low (textlow);
psymtab->set_text_high (psymtab->raw_text_low ()); /* default */
- psymtab->globals_offset = global_psymbols.size ();
- psymtab->statics_offset = static_psymbols.size ();
+ psymtab->globals_offset = objfile->global_psymbols.size ();
+ psymtab->statics_offset = objfile->static_psymbols.size ();
return psymtab;
}