aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-28 10:28:57 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-04-11 10:46:07 -0400
commit60f62e2b83eb362c5063247235c111a59e13cad1 (patch)
treec74a83d20a05ab710391425f072f79e31276db5a /gdb/c-exp.y
parent4aeddc50d7a06294cc124dfd8f43992ffa0b7382 (diff)
downloadfsf-binutils-gdb-60f62e2b83eb362c5063247235c111a59e13cad1.zip
fsf-binutils-gdb-60f62e2b83eb362c5063247235c111a59e13cad1.tar.gz
fsf-binutils-gdb-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/c-exp.y')
-rw-r--r--gdb/c-exp.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 4fa3f8d..d852b1e 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1232,8 +1232,8 @@ variable: name_not_typename
is important for example for "p
*__errno_location()". */
symbol *alias_target
- = ((msymbol.minsym->type != mst_text_gnu_ifunc
- && msymbol.minsym->type != mst_data_gnu_ifunc)
+ = ((msymbol.minsym->type () != mst_text_gnu_ifunc
+ && msymbol.minsym->type () != mst_data_gnu_ifunc)
? find_function_alias_target (msymbol)
: NULL);
if (alias_target != NULL)