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/m2-typeprint.c | |
parent | gdb: remove FIELD_BITSIZE (diff) | |
download | binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.bz2 binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip |
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/m2-typeprint.c')
-rw-r--r-- | gdb/m2-typeprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index 2eea410bcd3..552c1219dbf 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -577,8 +577,7 @@ m2_record_fields (struct type *type, struct ui_file *stream, int show, unnamed fields. This would lead to misleading results if the compiler does not put out fields for such things (I don't know what it does). */ - gdb_printf (stream, " : %d", - TYPE_FIELD_BITSIZE (type, i)); + gdb_printf (stream, " : %d", type->field (i).bitsize ()); } gdb_printf (stream, ";\n"); } |