mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +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:
@ -601,7 +601,7 @@ language_defn::watch_location_expression (struct type *type,
|
||||
CORE_ADDR addr) const
|
||||
{
|
||||
/* Generates an expression that assumes a C like syntax is valid. */
|
||||
type = check_typedef (TYPE_TARGET_TYPE (check_typedef (type)));
|
||||
type = check_typedef (check_typedef (type)->target_type ());
|
||||
std::string name = type_to_string (type);
|
||||
return xstrprintf ("* (%s *) %s", name.c_str (), core_addr_to_string (addr));
|
||||
}
|
||||
@ -850,7 +850,7 @@ public:
|
||||
type = check_typedef (type);
|
||||
while (type->code () == TYPE_CODE_REF)
|
||||
{
|
||||
type = TYPE_TARGET_TYPE (type);
|
||||
type = type->target_type ();
|
||||
type = check_typedef (type);
|
||||
}
|
||||
return (type->code () == TYPE_CODE_STRING);
|
||||
|
Reference in New Issue
Block a user