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/f-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/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 1867962..4fbda5d 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -271,7 +271,7 @@ public: elt_off_prev); repeated = ((value_entirely_available (e_prev) && value_entirely_available (e_val) - && value_contents_eq (e_prev, e_val)) + && e_prev->contents_eq (e_val)) || (value_entirely_unavailable (e_prev) && value_entirely_unavailable (e_val))); } @@ -378,7 +378,7 @@ private: return ((value_entirely_available (e_val1) && value_entirely_available (e_val2) - && value_contents_eq (e_val1, e_val2)) + && e_val1->contents_eq (e_val2)) || (value_entirely_unavailable (e_val1) && value_entirely_unavailable (e_val2))); } |