diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 10:28:57 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-11 10:46:07 -0400 |
commit | 60f62e2b83eb362c5063247235c111a59e13cad1 (patch) | |
tree | c74a83d20a05ab710391425f072f79e31276db5a /gdb/ada-lang.c | |
parent | 4aeddc50d7a06294cc124dfd8f43992ffa0b7382 (diff) | |
download | binutils-60f62e2b83eb362c5063247235c111a59e13cad1.zip binutils-60f62e2b83eb362c5063247235c111a59e13cad1.tar.gz binutils-60f62e2b83eb362c5063247235c111a59e13cad1.tar.bz2 |
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
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 6 |
1 files changed, 3 insertions, 3 deletions
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.")); |