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/ada-lang.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 29f2a4b..ffe3550 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4898,7 +4898,7 @@ ada_lookup_simple_minsym (const char *name) for (minimal_symbol *msymbol : objfile->msymbols ()) { if (match_name (msymbol->linkage_name (), lookup_name, NULL) - && MSYMBOL_TYPE (msymbol) != mst_solib_trampoline) + && msymbol->type () != mst_solib_trampoline) { result.minsym = msymbol; result.objfile = objfile; @@ -11717,7 +11717,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) struct bound_minimal_symbol msym = lookup_minimal_symbol (einfo->catch_exception_sym, NULL, NULL); - if (msym.minsym && MSYMBOL_TYPE (msym.minsym) != mst_solib_trampoline) + if (msym.minsym && msym.minsym->type () != mst_solib_trampoline) error (_("Your Ada runtime appears to be missing some debugging " "information.\nCannot insert Ada exception catchpoint " "in this configuration.")); @@ -11740,7 +11740,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) struct bound_minimal_symbol msym = lookup_minimal_symbol (einfo->catch_handlers_sym, NULL, NULL); - if (msym.minsym && MSYMBOL_TYPE (msym.minsym) != mst_solib_trampoline) + if (msym.minsym && msym.minsym->type () != mst_solib_trampoline) error (_("Your Ada runtime appears to be missing some debugging " "information.\nCannot insert Ada exception catchpoint " "in this configuration.")); -- cgit v1.1