aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-28 10:59:38 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:02 -0400
commit4b8791e10e574d3279e6783b58556893b0c92853 (patch)
treee348e10e55388797f1bb53f3b6ae5cc990f1d223 /gdb/symmisc.c
parentdfb138f9344ca671e7e16fffe36779d38d18c490 (diff)
downloadbinutils-4b8791e10e574d3279e6783b58556893b0c92853.zip
binutils-4b8791e10e574d3279e6783b58556893b0c92853.tar.gz
binutils-4b8791e10e574d3279e6783b58556893b0c92853.tar.bz2
gdb: remove BLOCK_{START,END} macros
Replace with equivalent methods. Change-Id: I10a6c8a2a86462d9d4a6a6409a3f07a6bea66310
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index dee11fd..097dc2d 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -295,9 +295,9 @@ dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile)
wants it. */
gdb_printf (outfile, ", %d syms/buckets in ",
mdict_size (BLOCK_MULTIDICT (b)));
- gdb_puts (paddress (gdbarch, BLOCK_START (b)), outfile);
+ gdb_puts (paddress (gdbarch, b->start ()), outfile);
gdb_printf (outfile, "..");
- gdb_puts (paddress (gdbarch, BLOCK_END (b)), outfile);
+ gdb_puts (paddress (gdbarch, b->end ()), outfile);
if (BLOCK_FUNCTION (b))
{
gdb_printf (outfile, ", function %s",
@@ -631,8 +631,8 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol,
gdb_printf
(outfile, "block object %s, %s..%s",
host_address_to_string (symbol->value_block ()),
- paddress (gdbarch, BLOCK_START (symbol->value_block ())),
- paddress (gdbarch, BLOCK_END (symbol->value_block ())));
+ paddress (gdbarch, symbol->value_block()->start ()),
+ paddress (gdbarch, symbol->value_block()->end ()));
if (section)
gdb_printf (outfile, " section %s",
bfd_section_name (section->the_bfd_section));