]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make struct value data members private
authorTom Tromey <tom@tromey.com>
Wed, 1 Feb 2023 15:25:40 +0000 (08:25 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 13 Feb 2023 22:22:20 +0000 (15:22 -0700)
This hoists the 'private' in struct value to also encompass the data
members.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/value.h

index 225a3c851c41049a3c7ecb2117667c9b43a0e428..7708530ddcceaf102213c33ea37b271535b52069 100644 (file)
@@ -609,6 +609,8 @@ public:
      in the history.  The value is removed from the value chain.  */
   int record_latest ();
 
+private:
+
   /* Type of value; either not an lval, or one of the various
      different possible kinds of lval.  */
   enum lval_type m_lval = not_lval;
@@ -785,8 +787,6 @@ public:
      loaded from the inferior.  */
   ULONGEST m_limited_length = 0;
 
-private:
-
   /* Allocate a value and its contents for type TYPE.  If CHECK_SIZE
      is true, then apply the usual max-value-size checks.  */
   static struct value *allocate (struct type *type, bool check_size);
@@ -806,15 +806,11 @@ private:
      return failure here, which will ultimately throw an error.  */
   bool set_limited_array_length ();
 
-public: /* Temporary */
-
   /* Allocate the contents of this value if it has not been allocated
      yet.  If CHECK_SIZE is true, then apply the usual max-value-size
      checks.  */
   void allocate_contents (bool check_size);
 
-private:
-
   /* Helper function for value_contents_eq.  The only difference is that
      this function is bit rather than byte based.