From 60f62e2b83eb362c5063247235c111a59e13cad1 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 28 Jan 2022 10:28:57 -0500 Subject: gdb: remove MSYMBOL_TYPE macro Add a getter and a setter for a minimal symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: I89900df5ffa5687133fe1a16b2e0d4684e67a77d --- gdb/compile/compile-cplus-symbols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/compile/compile-cplus-symbols.c') diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c index b68184c..7ad9ea9 100644 --- a/gdb/compile/compile-cplus-symbols.c +++ b/gdb/compile/compile-cplus-symbols.c @@ -284,7 +284,7 @@ convert_symbol_bmsym (compile_cplus_instance *instance, addr = msym->value_address (objfile); /* Conversion copied from write_exp_msymbol. */ - switch (MSYMBOL_TYPE (msym)) + switch (msym->type ()) { case mst_text: case mst_file_text: @@ -459,7 +459,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context, "symbol\n", identifier); result = msym.value_address (); - if (MSYMBOL_TYPE (msym.minsym) == mst_text_gnu_ifunc) + if (msym.minsym->type () == mst_text_gnu_ifunc) result = gnu_ifunc_resolve_addr (target_gdbarch (), result); found = 1; } -- cgit v1.1