]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix whitespace in *.h
authorTom de Vries <tdevries@suse.de>
Tue, 9 Dec 2025 23:25:19 +0000 (00:25 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 9 Dec 2025 23:25:19 +0000 (00:25 +0100)
Fix whitespace in the *.h files in gdb, and add these files to the clean list
in gdb/contrib/check-whitespace-pre-commit.py.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/block.h
gdb/config/i386/nm-x86-gnu.h
gdb/contrib/check-whitespace-pre-commit.py
gdb/dwarf2/abbrev.h
gdb/symtab.h

index b199663273cee0b7ea7649be1de4db71b3051531..65e2e20877e21e7356c1fa70f47e2968b3823a74 100644 (file)
@@ -496,7 +496,7 @@ struct blockvector
   void set_map (addrmap_fixed *map)
   { m_map = map; }
 
-  /* Block comparison function.  Returns true if B1 must be ordered before 
+  /* Block comparison function.  Returns true if B1 must be ordered before
      B2 in a blockvector, false otherwise.  */
   static bool block_less_than (const struct block *b1, const struct block *b2);
 
index 0ddde300cd67c15530b5dc916ceb29f12599d1c7..1724f5f5c66bbcf0d7bf89d4890014fcccc4bf94 100644 (file)
@@ -29,9 +29,9 @@
        ((((struct i386_thread_state *) (state))->rfl &= ~0x100), 1)
 #else
 #define THREAD_STATE_SET_TRACED(state) \
-       ((struct i386_thread_state *) (state))->efl |= 0x100
+       ((struct i386_thread_state *) (state))->efl |= 0x100
 #define THREAD_STATE_CLEAR_TRACED(state) \
-       ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
+       ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
 #endif /* __x86_64__ */
 
 #endif /* GDB_CONFIG_I386_NM_X86_GNU_H */
index 023a5d2b2ea8214f4ecd7a48656b4f6fe0fae370..3045b3e6c7ed5f4750a4a5450df6cff6ecddb41e 100755 (executable)
@@ -18,7 +18,7 @@ import re
 import subprocess
 import sys
 
-re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac)$)")
+re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|h)$)")
 
 clean = []
 other = []
index a36bb8c1ba639e4836f2fb99efeb97a0e4512454..6994e7fbec0cbc15ce6bea2e73e0dae3482d3234 100644 (file)
@@ -145,7 +145,7 @@ private:
 
   /* Hash table of abbrev, identified by their number.  */
   gdb::unordered_set<const abbrev_info *,
-                    abbrev_info_number_hash,
+                    abbrev_info_number_hash,
                     abbrev_info_number_eq>
     m_abbrevs;
 
index 45aca07bc362f8dbfbd682cb5d67ff4f77dc7c08..9336f5d35a7e330b5ce635c6b231764f9ca6da70 100644 (file)
@@ -1908,7 +1908,7 @@ struct compunit_symtab : intrusive_list_node<compunit_symtab>
 
   /* Set m_blockvector.  */
   void set_blockvector (std::unique_ptr<struct blockvector> blockvector);
-  
+
   bool locations_valid () const
   {
     return m_locations_valid;