diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 11:05:21 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 11:05:21 -0400 |
commit | df86565b31bf12aab6fdceade49169bc6f378b13 (patch) | |
tree | 76d5944661919552ce4ea01ac49188e151d72fa7 /gdb/stap-probe.c | |
parent | b6cdbc9a8173b9e6cc8cfc284caa0efa8129ca02 (diff) | |
download | gdb-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/stap-probe.c')
-rw-r--r-- | gdb/stap-probe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 2b3eb37..40d646a 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1482,14 +1482,14 @@ stap_modify_semaphore (CORE_ADDR address, int set, struct gdbarch *gdbarch) ULONGEST value; /* Swallow errors. */ - if (target_read_memory (address, bytes, TYPE_LENGTH (type)) != 0) + if (target_read_memory (address, bytes, type->length ()) != 0) { warning (_("Could not read the value of a SystemTap semaphore.")); return; } enum bfd_endian byte_order = type_byte_order (type); - value = extract_unsigned_integer (bytes, TYPE_LENGTH (type), byte_order); + value = extract_unsigned_integer (bytes, type->length (), byte_order); /* Note that we explicitly don't worry about overflow or underflow. */ if (set) @@ -1497,9 +1497,9 @@ stap_modify_semaphore (CORE_ADDR address, int set, struct gdbarch *gdbarch) else --value; - store_unsigned_integer (bytes, TYPE_LENGTH (type), byte_order, value); + store_unsigned_integer (bytes, type->length (), byte_order, value); - if (target_write_memory (address, bytes, TYPE_LENGTH (type)) != 0) + if (target_write_memory (address, bytes, type->length ()) != 0) warning (_("Could not write the value of a SystemTap semaphore.")); } |