public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Make block members 'private'
@ 2023-02-19 23:39 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-02-19 23:39 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b32797e8b99b53d4cdd22a4e649792146b219adc

commit b32797e8b99b53d4cdd22a4e649792146b219adc
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Jan 20 07:20:38 2023 -0700

    Make block members 'private'
    
    This changes block to make the data members 'private'.

Diff:
---
 gdb/block.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gdb/block.h b/gdb/block.h
index 7c40bae9af2..32e3c9ebcfd 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -271,6 +271,12 @@ struct block : public allocate_on_obstack
 
   struct dynamic_prop *static_link () const;
 
+private:
+
+  /* If the namespace_info is NULL, allocate it via OBSTACK and
+     initialize its members to zero.  */
+  void initialize_namespace (struct obstack *obstack);
+
   /* Addresses in the executable code that are in this block.  */
 
   CORE_ADDR m_start = 0;
@@ -303,12 +309,6 @@ struct block : public allocate_on_obstack
      startaddr and endaddr above.  */
 
   struct blockranges *m_ranges = nullptr;
-
-private:
-
-  /* If the namespace_info is NULL, allocate it via OBSTACK and
-     initialize its members to zero.  */
-  void initialize_namespace (struct obstack *obstack);
 };
 
 /* The global block is singled out so that we can provide a back-link

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-19 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-19 23:39 [binutils-gdb] Make block members 'private' Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).