mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
This commit is contained in:
gdb
ada-exp.yada-lang.cada-tasks.cax-gdb.cblock.cblockframe.cbuildsym.cc-exp.yc-typeprint.cc-valprint.ccoffread.c
compile
compile-c-symbols.ccompile-cplus-symbols.ccompile-cplus-types.ccompile-object-load.ccompile-object-run.c
cp-namespace.ccp-support.cctfread.cd-exp.yd-namespace.cdwarf2
eval.cf-exp.yfbsd-tdep.cfindvar.cgdbtypes.cgnu-v3-abi.cgo-exp.yguile
infcmd.cjit.clanguage.clinespec.cm2-typeprint.cmdebugread.cmi
objc-lang.cp-exp.yp-valprint.cpython
rust-lang.crust-parse.csparc-tdep.cstabsread.cstack.csymmisc.csymtab.csymtab.htracepoint.ctypeprint.cvalops.cxcoffread.c@ -220,7 +220,7 @@ cp_lookup_bare_symbol (const struct language_defn *langdef,
|
||||
return {};
|
||||
|
||||
|
||||
type = check_typedef (TYPE_TARGET_TYPE (SYMBOL_TYPE (lang_this.symbol)));
|
||||
type = check_typedef (TYPE_TARGET_TYPE (lang_this.symbol->type ()));
|
||||
/* If TYPE_NAME is NULL, abandon trying to find this symbol.
|
||||
This can happen for lambda functions compiled with clang++,
|
||||
which outputs no name for the container class. */
|
||||
@ -274,7 +274,7 @@ cp_search_static_and_baseclasses (const char *name,
|
||||
if (scope_sym.symbol == NULL)
|
||||
return {};
|
||||
|
||||
struct type *scope_type = SYMBOL_TYPE (scope_sym.symbol);
|
||||
struct type *scope_type = scope_sym.symbol->type ();
|
||||
|
||||
/* If the scope is a function/method, then look up NESTED as a local
|
||||
static variable. E.g., "print 'function()::static_var'". */
|
||||
|
Reference in New Issue
Block a user