aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:06 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:06 -0400
commit0becda7a5a1845c7e91ccba1b27da3607de3f534 (patch)
tree8b1e4adc8efbc2519504ae34b664406bab7d1c25 /gdb/compile
parent03cc72491b8139cffaf2c6ce9db84ebc17205323 (diff)
downloadgdb-0becda7a5a1845c7e91ccba1b27da3607de3f534.zip
gdb-0becda7a5a1845c7e91ccba1b27da3607de3f534.tar.gz
gdb-0becda7a5a1845c7e91ccba1b27da3607de3f534.tar.bz2
gdb: remove TYPE_GNU_IFUNC
gdb/ChangeLog: * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all uses with type::is_gnu_ifunc. Change-Id: I72aae22599b5e582910c5d50588feaf159032bd8
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile-c-symbols.c4
-rw-r--r--gdb/compile/compile-cplus-symbols.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c
index f4e0783..6d455fe 100644
--- a/gdb/compile/compile-c-symbols.c
+++ b/gdb/compile/compile-c-symbols.c
@@ -94,7 +94,7 @@ convert_one_symbol (compile_c_instance *context,
case LOC_BLOCK:
kind = GCC_C_SYMBOL_FUNCTION;
addr = BLOCK_ENTRY_PC (SYMBOL_BLOCK_VALUE (sym.symbol));
- if (is_global && TYPE_GNU_IFUNC (SYMBOL_TYPE (sym.symbol)))
+ if (is_global && SYMBOL_TYPE (sym.symbol)->is_gnu_ifunc ())
addr = gnu_ifunc_resolve_addr (target_gdbarch (), addr);
break;
@@ -405,7 +405,7 @@ gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context,
"gcc_symbol_address \"%s\": full symbol\n",
identifier);
result = BLOCK_ENTRY_PC (SYMBOL_BLOCK_VALUE (sym));
- if (TYPE_GNU_IFUNC (SYMBOL_TYPE (sym)))
+ if (SYMBOL_TYPE (sym)->is_gnu_ifunc ())
result = gnu_ifunc_resolve_addr (target_gdbarch (), result);
found = 1;
}
diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c
index 11a2d32..1998584 100644
--- a/gdb/compile/compile-cplus-symbols.c
+++ b/gdb/compile/compile-cplus-symbols.c
@@ -88,7 +88,7 @@ convert_one_symbol (compile_cplus_instance *instance,
{
kind = GCC_CP_SYMBOL_FUNCTION;
addr = BLOCK_START (SYMBOL_BLOCK_VALUE (sym.symbol));
- if (is_global && TYPE_GNU_IFUNC (SYMBOL_TYPE (sym.symbol)))
+ if (is_global && SYMBOL_TYPE (sym.symbol)->is_gnu_ifunc ())
addr = gnu_ifunc_resolve_addr (target_gdbarch (), addr);
}
break;
@@ -442,7 +442,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context,
"gcc_symbol_address \"%s\": full symbol\n",
identifier);
result = BLOCK_START (SYMBOL_BLOCK_VALUE (sym));
- if (TYPE_GNU_IFUNC (SYMBOL_TYPE (sym)))
+ if (SYMBOL_TYPE (sym)->is_gnu_ifunc ())
result = gnu_ifunc_resolve_addr (target_gdbarch (), result);
found = 1;
}