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/compile | |
parent | dfb138f9344ca671e7e16fffe36779d38d18c490 (diff) | |
download | gdb-4b8791e10e574d3279e6783b58556893b0c92853.zip gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.gz gdb-4b8791e10e574d3279e6783b58556893b0c92853.tar.bz2 |
gdb: remove BLOCK_{START,END} macros
Replace with equivalent methods.
Change-Id: I10a6c8a2a86462d9d4a6a6409a3f07a6bea66310
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-cplus-symbols.c | 4 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c index 95d4350..ef2a1f5 100644 --- a/gdb/compile/compile-cplus-symbols.c +++ b/gdb/compile/compile-cplus-symbols.c @@ -87,7 +87,7 @@ convert_one_symbol (compile_cplus_instance *instance, case LOC_BLOCK: { kind = GCC_CP_SYMBOL_FUNCTION; - addr = BLOCK_START (sym.symbol->value_block ()); + addr = sym.symbol->value_block()->start (); if (is_global && sym.symbol->type ()->is_gnu_ifunc ()) addr = gnu_ifunc_resolve_addr (target_gdbarch (), addr); } @@ -441,7 +441,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context, gdb_printf (gdb_stdlog, "gcc_symbol_address \"%s\": full symbol\n", identifier); - result = BLOCK_START (sym->value_block ()); + result = sym->value_block ()->start (); if (sym->type ()->is_gnu_ifunc ()) result = gnu_ifunc_resolve_addr (target_gdbarch (), result); found = 1; diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index ab65e47..e7c940b 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -766,7 +766,7 @@ compile_cplus_convert_struct_or_union_methods (compile_cplus_instance *instance, const char *filename = sym.symbol->symtab ()->filename; unsigned int line = sym.symbol->line (); - CORE_ADDR address = BLOCK_START (sym.symbol->value_block ()); + CORE_ADDR address = sym.symbol->value_block()->start (); const char *kind; if (TYPE_FN_FIELD_STATIC_P (methods, j)) |