mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
gdb: add type::is_gnu_ifunc / type::set_is_gnu_ifunc
Add the `is_gnu_ifunc` and `set_is_gnu_ifunc` methods on `struct type`, in order to remove the `TYPE_GNU_IFUNC` macro. In this patch, the macro is changed to use the getter, so all the call sites of the macro that are used as a setter are changed to use the setter method directly. The next patch will remove the macro completely. gdb/ChangeLog: * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods. (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to use type::set_is_gnu_ifunc. Change-Id: Ic23ba8c5b8e589d9fc368385111aa16a94e014e2
This commit is contained in:
@ -5934,10 +5934,12 @@ objfile_type (struct objfile *objfile)
|
||||
objfile_type->nodebug_text_symbol
|
||||
= init_type (objfile, TYPE_CODE_FUNC, TARGET_CHAR_BIT,
|
||||
"<text variable, no debug info>");
|
||||
|
||||
objfile_type->nodebug_text_gnu_ifunc_symbol
|
||||
= init_type (objfile, TYPE_CODE_FUNC, TARGET_CHAR_BIT,
|
||||
"<text gnu-indirect-function variable, no debug info>");
|
||||
TYPE_GNU_IFUNC (objfile_type->nodebug_text_gnu_ifunc_symbol) = 1;
|
||||
objfile_type->nodebug_text_gnu_ifunc_symbol->set_is_gnu_ifunc (true);
|
||||
|
||||
objfile_type->nodebug_got_plt_symbol
|
||||
= init_pointer_type (objfile, gdbarch_addr_bit (gdbarch),
|
||||
"<text from jump slot in .got.plt, no debug info>",
|
||||
|
Reference in New Issue
Block a user