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/p-typeprint.c | |
parent | 3be8c91910114853a64ab87fd1efaef220bb0205 (diff) | |
download | fsf-binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip fsf-binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz fsf-binutils-gdb-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/p-typeprint.c')
-rw-r--r-- | gdb/p-typeprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index a3c2ef8..356a3a8 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -529,8 +529,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int 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"); } |