diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 21:32:41 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 012cfab919e7da355b2ac7f86674211cbce26041 (patch) | |
tree | da86dca9362d26fd408ce24b08dd8679a6c91769 /gdb/compile | |
parent | 1ee2e9f9304d05f2962bbc4b83096b850fe4e433 (diff) | |
download | fsf-binutils-gdb-012cfab919e7da355b2ac7f86674211cbce26041.zip fsf-binutils-gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.gz fsf-binutils-gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.bz2 |
gdb: remove SYMTAB_BLOCKVECTOR macro
Remove the macro, replace with an equivalent method.
Change-Id: Id6fe2a79c04bcd6c69ccaefb7a69bc06a476288c
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-object-load.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index 336e8d3..692e990 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -421,7 +421,7 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile, lookup_name_info func_matcher (GCC_FE_WRAPPER_FUNCTION, symbol_name_match_type::SEARCH_NAME); - bv = SYMTAB_BLOCKVECTOR (func_sym->owner.symtab); + bv = func_sym->owner.symtab->blockvector (); nblocks = BLOCKVECTOR_NBLOCKS (bv); gdb_ptr_type_sym = NULL; diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 7bd6ac8..5ab4e48 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -484,7 +484,7 @@ get_expr_block_and_pc (CORE_ADDR *pc) struct symtab_and_line cursal = get_current_source_symtab_and_line (); if (cursal.symtab) - block = BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (cursal.symtab), + block = BLOCKVECTOR_BLOCK (cursal.symtab->blockvector (), STATIC_BLOCK); if (block != NULL) *pc = BLOCK_ENTRY_PC (block); |