[3/6] gdb/buildsym: fix indentation of struct context_stack

Message ID 20251219184426.406228-3-simon.marchi@efficios.com
State New
Headers
Series [1/6] gdb/buildsym: remove find_symbol_in_list |

Commit Message

Simon Marchi Dec. 19, 2025, 6:43 p.m. UTC
  While at it, fixup some comments, remove unnecessary empty lines,
remove unnecessary struct keywords.

Change-Id: I67a4c8302dfca46417d5f46f5dc0378a066f80c4
---
 gdb/buildsym.h | 42 +++++++++++++++++-------------------------
 1 file changed, 17 insertions(+), 25 deletions(-)
  

Comments

Tom Tromey Jan. 5, 2026, 4:52 p.m. UTC | #1
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> While at it, fixup some comments, remove unnecessary empty lines,
Simon> remove unnecessary struct keywords.

Looks good.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
  

Patch

diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 339ac09a1aff..8446377c5a6c 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -85,37 +85,29 @@  struct pending
    blocks, eventually).  */
 
 struct context_stack
-  {
-    /* Outer locals at the time we entered */
+{
+  /* Outer locals at the time we entered.  */
+  pending *locals;
 
-    struct pending *locals;
+  /* Pending using directives at the time we entered.  */
+  using_direct *local_using_directives;
 
-    /* Pending using directives at the time we entered.  */
+  /* Pointer into blocklist as of entry.  */
+  pending_block *old_blocks;
 
-    struct using_direct *local_using_directives;
+  /* Name of function, if any, defining context.  */
+  symbol *name;
 
-    /* Pointer into blocklist as of entry */
+  /* Expression that computes the frame base of the lexically enclosing
+     function, if any.  NULL otherwise.  */
+  dynamic_prop *static_link;
 
-    struct pending_block *old_blocks;
+  /* PC where this context starts.  */
+  CORE_ADDR start_addr;
 
-    /* Name of function, if any, defining context */
-
-    struct symbol *name;
-
-    /* Expression that computes the frame base of the lexically enclosing
-       function, if any.  NULL otherwise.  */
-
-    struct dynamic_prop *static_link;
-
-    /* PC where this context starts */
-
-    CORE_ADDR start_addr;
-
-    /* For error-checking matching push/pop */
-
-    int depth;
-
-  };
+  /* For error-checking matching push/pop.  */
+  int depth;
+};
 
 /* Flags associated with a linetable entry.  */