]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/buildsym: fix indentation of struct context_stack
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 19 Dec 2025 18:43:41 +0000 (13:43 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 5 Jan 2026 20:26:31 +0000 (15:26 -0500)
While at it, fixup some comments, remove unnecessary empty lines,
remove unnecessary struct keywords.

Change-Id: I67a4c8302dfca46417d5f46f5dc0378a066f80c4
Approved-By: Tom Tromey <tom@tromey.com>
gdb/buildsym.h

index 946d39583b1e5eaadf0b1a0e75b8d004b9c3e4b0..456489f1b30906da2174229ecde4f911c8760015 100644 (file)
@@ -85,37 +85,29 @@ struct pending
    blocks, eventually).  */
 
 struct context_stack
-  {
-    /* Outer locals at the time we entered */
-
-    struct pending *locals;
-
-    /* Pending using directives at the time we entered.  */
-
-    struct using_direct *local_using_directives;
-
-    /* Pointer into blocklist as of entry */
-
-    struct pending_block *old_blocks;
-
-    /* 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.  */
+{
+  /* Outer locals at the time we entered.  */
+  pending *locals;
 
-    struct dynamic_prop *static_link;
+  /* Pending using directives at the time we entered.  */
+  using_direct *local_using_directives;
 
-    /* PC where this context starts */
+  /* Pointer into blocklist as of entry.  */
+  pending_block *old_blocks;
 
-    CORE_ADDR start_addr;
+  /* Name of function, if any, defining context.  */
+  symbol *name;
 
-    /* For error-checking matching push/pop */
+  /* Expression that computes the frame base of the lexically enclosing
+     function, if any.  NULL otherwise.  */
+  dynamic_prop *static_link;
 
-    int depth;
+  /* PC where this context starts.  */
+  CORE_ADDR start_addr;
 
-  };
+  /* For error-checking matching push/pop.  */
+  int depth;
+};
 
 /* Flags associated with a linetable entry.  */