diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 14:11:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:16 -0700 |
commit | 02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06 (patch) | |
tree | 2c470e976d1488b6aa7b80641ec7e8e8c12d27f5 /gdb/valprint.c | |
parent | 82ca8f72011ed3d4661fc05e908cfa8f01c8f6f2 (diff) | |
download | gdb-02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06.zip gdb-02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06.tar.gz gdb-02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06.tar.bz2 |
Turn value_contents_eq into a method
This changes value_contents_eq to be a method of value. It also
converts the static function value_contents_bits_eq into a private
method.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 1beec19..2fa18b8 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -2029,7 +2029,7 @@ value_print_array_elements (struct value *val, struct ui_file *stream, bit_stride); bool repeated = ((available && value_entirely_available (rep_elt) - && value_contents_eq (element, rep_elt)) + && element->contents_eq (rep_elt)) || (unavailable && value_entirely_unavailable (rep_elt))); if (!repeated) |