diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:27 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:14 -0400 |
commit | 3757d2d44f63b446469723e0a7a8c0dc2f695a6c (patch) | |
tree | d649580e7a3b2b92ab132bd623443695bcfc0bc0 /gdb/valprint.c | |
parent | 3be8c91910114853a64ab87fd1efaef220bb0205 (diff) | |
download | binutils-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip binutils-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz binutils-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.bz2 |
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize.
Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 9489662..b65dda1 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1244,7 +1244,7 @@ val_print_type_code_flags (struct type *type, struct value *original_value, problematic place to notify the user of an internal error though. Instead just fall through and print the field as an int. */ - && TYPE_FIELD_BITSIZE (type, field) == 1) + && type->field (field).bitsize () == 1) { if (val & ((ULONGEST)1 << type->field (field).loc_bitpos ())) gdb_printf @@ -1254,7 +1254,7 @@ val_print_type_code_flags (struct type *type, struct value *original_value, } else { - unsigned field_len = TYPE_FIELD_BITSIZE (type, field); + unsigned field_len = type->field (field).bitsize (); ULONGEST field_val = val >> type->field (field).loc_bitpos (); if (field_len < sizeof (ULONGEST) * TARGET_CHAR_BIT) |