mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type. Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
This commit is contained in:
gdb
aarch64-tdep.cada-exp.yada-lang.cada-tasks.cada-typeprint.cada-valprint.cada-varobj.camd64-tdep.camd64-windows-tdep.carm-tdep.cavr-tdep.cax-gdb.cblockframe.cc-exp.yc-lang.cc-typeprint.cc-valprint.cc-varobj.ccoffread.c
compile
cp-namespace.ccp-support.ccp-valprint.cctfread.cd-namespace.cd-valprint.cdwarf2
elfread.ceval.cexpop.hf-array-walker.hf-lang.cf-lang.hf-typeprint.cf-valprint.cfrv-tdep.cgdbtypes.cgdbtypes.hgnu-v2-abi.cgnu-v3-abi.cgo-lang.cgo-typeprint.cgo-valprint.cguile
hppa-tdep.ci386-tdep.ci386-windows-tdep.cia64-tdep.cinfcall.cinfcmd.ciq2000-tdep.clanguage.cloongarch-tdep.cm2-lang.cm2-lang.hm2-typeprint.cm2-valprint.cm32c-tdep.cm68k-tdep.cmdebugread.cmsp430-tdep.copencl-lang.cp-exp.yp-lang.cp-typeprint.cp-valprint.cppc-sysv-tdep.cpython
riscv-tdep.crl78-tdep.crust-lang.crust-lang.hrx-tdep.cs390-tdep.csh-tdep.csparc-tdep.csparc64-tdep.cstack.csymtab.ctic6x-tdep.ctypeprint.cv850-tdep.cvalarith.cvalops.cvalprint.cvalue.cxstormy16-tdep.c@ -503,7 +503,7 @@ typy_get_composite (struct type *type)
|
||||
|
||||
if (!type->is_pointer_or_reference ())
|
||||
break;
|
||||
type = TYPE_TARGET_TYPE (type);
|
||||
type = type->target_type ();
|
||||
}
|
||||
|
||||
/* If this is not a struct, union, or enum type, raise TypeError
|
||||
@ -686,14 +686,14 @@ typy_target (PyObject *self, PyObject *args)
|
||||
{
|
||||
struct type *type = ((type_object *) self)->type;
|
||||
|
||||
if (!TYPE_TARGET_TYPE (type))
|
||||
if (!type->target_type ())
|
||||
{
|
||||
PyErr_SetString (PyExc_RuntimeError,
|
||||
_("Type does not have a target."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return type_to_type_object (TYPE_TARGET_TYPE (type));
|
||||
return type_to_type_object (type->target_type ());
|
||||
}
|
||||
|
||||
/* Return a const-qualified type variant. */
|
||||
@ -1007,7 +1007,7 @@ typy_template_argument (PyObject *self, PyObject *args)
|
||||
{
|
||||
type = check_typedef (type);
|
||||
if (TYPE_IS_REFERENCE (type))
|
||||
type = check_typedef (TYPE_TARGET_TYPE (type));
|
||||
type = check_typedef (type->target_type ());
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
|
Reference in New Issue
Block a user