aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-11 09:39:58 -0700
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:38 -0600
commita8ed3dde8340e591043b7e7044d25ff92405993e (patch)
tree600051a3480a65d0a30a405f06240ec9cd844b1b /gdb/compile
parent426e5b66a738f4de185410a3e47a61423e0a7bdf (diff)
downloadbinutils-a8ed3dde8340e591043b7e7044d25ff92405993e.zip
binutils-a8ed3dde8340e591043b7e7044d25ff92405993e.tar.gz
binutils-a8ed3dde8340e591043b7e7044d25ff92405993e.tar.bz2
Rename objfile_type to builtin_type
This renames objfile_type to be an overload of builtin_type, in preparation for their unification. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile-c-symbols.c10
-rw-r--r--gdb/compile/compile-cplus-symbols.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c
index c47af4a..0449c37 100644
--- a/gdb/compile/compile-c-symbols.c
+++ b/gdb/compile/compile-c-symbols.c
@@ -279,12 +279,12 @@ convert_symbol_bmsym (compile_c_instance *context,
case mst_text:
case mst_file_text:
case mst_solib_trampoline:
- type = objfile_type (objfile)->nodebug_text_symbol;
+ type = builtin_type (objfile)->nodebug_text_symbol;
kind = GCC_C_SYMBOL_FUNCTION;
break;
case mst_text_gnu_ifunc:
- type = objfile_type (objfile)->nodebug_text_gnu_ifunc_symbol;
+ type = builtin_type (objfile)->nodebug_text_gnu_ifunc_symbol;
kind = GCC_C_SYMBOL_FUNCTION;
addr = gnu_ifunc_resolve_addr (target_gdbarch (), addr);
break;
@@ -293,17 +293,17 @@ convert_symbol_bmsym (compile_c_instance *context,
case mst_file_data:
case mst_bss:
case mst_file_bss:
- type = objfile_type (objfile)->nodebug_data_symbol;
+ type = builtin_type (objfile)->nodebug_data_symbol;
kind = GCC_C_SYMBOL_VARIABLE;
break;
case mst_slot_got_plt:
- type = objfile_type (objfile)->nodebug_got_plt_symbol;
+ type = builtin_type (objfile)->nodebug_got_plt_symbol;
kind = GCC_C_SYMBOL_FUNCTION;
break;
default:
- type = objfile_type (objfile)->nodebug_unknown_symbol;
+ type = builtin_type (objfile)->nodebug_unknown_symbol;
kind = GCC_C_SYMBOL_VARIABLE;
break;
}
diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c
index 02b7b89..5e504ac 100644
--- a/gdb/compile/compile-cplus-symbols.c
+++ b/gdb/compile/compile-cplus-symbols.c
@@ -291,14 +291,14 @@ convert_symbol_bmsym (compile_cplus_instance *instance,
case mst_text:
case mst_file_text:
case mst_solib_trampoline:
- type = objfile_type (objfile)->nodebug_text_symbol;
+ type = builtin_type (objfile)->nodebug_text_symbol;
kind = GCC_CP_SYMBOL_FUNCTION;
break;
case mst_text_gnu_ifunc:
/* nodebug_text_gnu_ifunc_symbol would cause:
function return type cannot be function */
- type = objfile_type (objfile)->nodebug_text_symbol;
+ type = builtin_type (objfile)->nodebug_text_symbol;
kind = GCC_CP_SYMBOL_FUNCTION;
addr = gnu_ifunc_resolve_addr (target_gdbarch (), addr);
break;
@@ -307,17 +307,17 @@ convert_symbol_bmsym (compile_cplus_instance *instance,
case mst_file_data:
case mst_bss:
case mst_file_bss:
- type = objfile_type (objfile)->nodebug_data_symbol;
+ type = builtin_type (objfile)->nodebug_data_symbol;
kind = GCC_CP_SYMBOL_VARIABLE;
break;
case mst_slot_got_plt:
- type = objfile_type (objfile)->nodebug_got_plt_symbol;
+ type = builtin_type (objfile)->nodebug_got_plt_symbol;
kind = GCC_CP_SYMBOL_FUNCTION;
break;
default:
- type = objfile_type (objfile)->nodebug_unknown_symbol;
+ type = builtin_type (objfile)->nodebug_unknown_symbol;
kind = GCC_CP_SYMBOL_VARIABLE;
break;
}