diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 10:59:38 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:02 -0400 |
commit | 4b8791e10e574d3279e6783b58556893b0c92853 (patch) | |
tree | e348e10e55388797f1bb53f3b6ae5cc990f1d223 /gdb/symtab.c | |
parent | dfb138f9344ca671e7e16fffe36779d38d18c490 (diff) | |
download | fsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.zip fsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.gz fsf-binutils-gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.bz2 |
gdb: remove BLOCK_{START,END} macros
Replace with equivalent methods.
Change-Id: I10a6c8a2a86462d9d4a6a6409a3f07a6bea66310
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 6926d15..993b196 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2982,8 +2982,8 @@ find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section) const struct blockvector *bv = cust->blockvector (); const struct block *global_block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); - CORE_ADDR start = BLOCK_START (global_block); - CORE_ADDR end = BLOCK_END (global_block); + CORE_ADDR start = global_block->start (); + CORE_ADDR end = global_block->end (); bool in_range_p = start <= pc && pc < end; if (!in_range_p) continue; @@ -3406,7 +3406,7 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) else if (alt) val.end = alt->pc; else - val.end = BLOCK_END (BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)); + val.end = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)->end (); } val.section = section; return val; @@ -3985,7 +3985,7 @@ skip_prologue_sal (struct symtab_and_line *sal) line is still part of the same function. */ if (skip && start_sal.pc != pc && (sym ? (BLOCK_ENTRY_PC (sym->value_block ()) <= start_sal.end - && start_sal.end < BLOCK_END (sym->value_block ())) + && start_sal.end < sym->value_block()->end ()) : (lookup_minimal_symbol_by_pc_section (start_sal.end, section).minsym == lookup_minimal_symbol_by_pc_section (pc, section).minsym))) { |