From: Tom de Vries Date: Tue, 9 Dec 2025 23:25:19 +0000 (+0100) Subject: [gdb] Fix whitespace in *.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08eac89e8897001962ad0624455e9beafb1bc226;p=thirdparty%2Fbinutils-gdb.git [gdb] Fix whitespace in *.h 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 --- diff --git a/gdb/block.h b/gdb/block.h index b199663273c..65e2e20877e 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -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); diff --git a/gdb/config/i386/nm-x86-gnu.h b/gdb/config/i386/nm-x86-gnu.h index 0ddde300cd6..1724f5f5c66 100644 --- a/gdb/config/i386/nm-x86-gnu.h +++ b/gdb/config/i386/nm-x86-gnu.h @@ -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 */ diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py index 023a5d2b2ea..3045b3e6c7e 100755 --- a/gdb/contrib/check-whitespace-pre-commit.py +++ b/gdb/contrib/check-whitespace-pre-commit.py @@ -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 = [] diff --git a/gdb/dwarf2/abbrev.h b/gdb/dwarf2/abbrev.h index a36bb8c1ba6..6994e7fbec0 100644 --- a/gdb/dwarf2/abbrev.h +++ b/gdb/dwarf2/abbrev.h @@ -145,7 +145,7 @@ private: /* Hash table of abbrev, identified by their number. */ gdb::unordered_set m_abbrevs; diff --git a/gdb/symtab.h b/gdb/symtab.h index 45aca07bc36..9336f5d35a7 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1908,7 +1908,7 @@ struct compunit_symtab : intrusive_list_node /* Set m_blockvector. */ void set_blockvector (std::unique_ptr blockvector); - + bool locations_valid () const { return m_locations_valid;