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/frame.c | |
parent | b6cdbc9a8173b9e6cc8cfc284caa0efa8129ca02 (diff) | |
download | binutils-gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.gz |
gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length.
Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index e6bebf575ca..fc883b3239e 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1157,9 +1157,9 @@ frame_register_unwind (frame_info *next_frame, int regnum, { if (!*optimizedp && !*unavailablep) memcpy (bufferp, value_contents_all (value).data (), - TYPE_LENGTH (value_type (value))); + value_type (value)->length ()); else - memset (bufferp, 0, TYPE_LENGTH (value_type (value))); + memset (bufferp, 0, value_type (value)->length ()); } /* Dispose of the new value. This prevents watchpoints from |