aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 11:05:21 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 11:05:21 -0400
commitdf86565b31bf12aab6fdceade49169bc6f378b13 (patch)
tree76d5944661919552ce4ea01ac49188e151d72fa7 /gdb/tracepoint.c
parentb6cdbc9a8173b9e6cc8cfc284caa0efa8129ca02 (diff)
downloadgdb-df86565b31bf12aab6fdceade49169bc6f378b13.zip
gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.gz
gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.bz2
gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index dfb62dc..6f01f52 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -922,7 +922,7 @@ collection_list::collect_symbol (struct symbol *sym,
bfd_signed_vma offset;
int treat_as_expr = 0;
- len = TYPE_LENGTH (check_typedef (sym->type ()));
+ len = check_typedef (sym->type ())->length ();
switch (sym->aclass ())
{
default:
@@ -1387,7 +1387,7 @@ encode_actions_1 (struct command_line *action,
check_typedef (type);
collect->add_memrange (target_gdbarch (),
memrange_absolute, addr,
- TYPE_LENGTH (type),
+ type->length (),
tloc->address);
collect->append_exp (std::string (exp_start,
action_exp));
@@ -2532,7 +2532,7 @@ info_scope_command (const char *args_in, int from_tty)
case LOC_CONST_BYTES:
gdb_printf ("constant bytes: ");
if (sym->type ())
- for (j = 0; j < TYPE_LENGTH (sym->type ()); j++)
+ for (j = 0; j < sym->type ()->length (); j++)
gdb_printf (" %02x", (unsigned) sym->value_bytes ()[j]);
break;
case LOC_STATIC:
@@ -2612,7 +2612,7 @@ info_scope_command (const char *args_in, int from_tty)
{
struct type *t = check_typedef (sym->type ());
- gdb_printf (", length %s.\n", pulongest (TYPE_LENGTH (t)));
+ gdb_printf (", length %s.\n", pulongest (t->length ()));
}
}
if (block->function ())