aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-21 10:36:23 -0600
committerTom Tromey <tromey@adacore.com>2023-11-21 14:52:05 -0700
commit20aadb931ddf2c6c4f9209fffd1fbfda50215342 (patch)
tree14d2c802fac360e1c54896b55f1cc7c652ee619d /gdb/p-valprint.c
parenta3e9fbf7e889228b091a7454cb5d862ddbc5b7ca (diff)
downloadgdb-20aadb931ddf2c6c4f9209fffd1fbfda50215342.zip
gdb-20aadb931ddf2c6c4f9209fffd1fbfda50215342.tar.gz
gdb-20aadb931ddf2c6c4f9209fffd1fbfda50215342.tar.bz2
Remove some type field accessor macros
This removes TYPE_FIELD_PRIVATE, TYPE_FIELD_PROTECTED, TYPE_FIELD_IGNORE, and TYPE_FIELD_VIRTUAL. In c-varobj.c, match_accessibility can be removed entirely now. Note that the comment before this function was incorrect. Acked-By: Simon Marchi <simon.marchi@efficios.com> Reviewed-by: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r--gdb/p-valprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index fb93862..0560162 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -604,7 +604,7 @@ pascal_object_print_value_fields (struct value *val, struct ui_file *stream,
/* Bitfields require special handling, especially due to byte
order problems. */
- if (TYPE_FIELD_IGNORE (type, i))
+ if (type->field (i).is_ignored ())
{
fputs_styled ("<optimized out or zero length>",
metadata_style.style (), stream);
@@ -629,7 +629,7 @@ pascal_object_print_value_fields (struct value *val, struct ui_file *stream,
}
else
{
- if (TYPE_FIELD_IGNORE (type, i))
+ if (type->field (i).is_ignored ())
{
fputs_styled ("<optimized out or zero length>",
metadata_style.style (), stream);