[binutils-gdb] [pre-commit] Make gdb/stubs codespell-clean
Tom de Vries via Gdb-cvs <[email protected]> Mon, 1 Jun 2026 12:34:22 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9ce6a00d6717771321979d7d1cd56097f32a8e16 commit 9ce6a00d6717771321979d7d1cd56097f32a8e16 Author: Tom de Vries <[email protected]> Date: Mon Jun 1 14:33:48 2026 +0200 [pre-commit] Make gdb/stubs codespell-clean Fix typos in gdb/stubs, and add "parm" to gdb/contrib/codespell-ignore-words.txt. Diff: --- .pre-commit-config.yaml | 2 +- gdb/contrib/codespell-ignore-words.txt | 1 + gdb/stubs/i386-stub.c | 2 +- gdb/stubs/ia64vms-stub.c | 4 ++-- gdb/stubs/m32r-stub.c | 4 ++-- gdb/stubs/m68k-stub.c | 4 ++-- gdb/stubs/sh-stub.c | 2 +- gdb/stubs/sparc-stub.c | 2 +- gdb/stubs/z80-stub.c | 9 +++++---- 9 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfd4cf77a6a..325287ee440 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: rev: v2.4.2 hooks: - id: codespell - files: '^(gdbsupport|gdbserver|gdb/(features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/' + files: '^(gdbsupport|gdbserver|gdb/(stubs|features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/' args: [--toml, gdb/pyproject.toml] - id: codespell name: codespell-log diff --git a/gdb/contrib/codespell-ignore-words.txt b/gdb/contrib/codespell-ignore-words.txt index c86bd3f0972..b6f80f3ce52 100644 --- a/gdb/contrib/codespell-ignore-words.txt +++ b/gdb/contrib/codespell-ignore-words.txt @@ -3,3 +3,4 @@ SME Synopsys aranges fpr +parm diff --git a/gdb/stubs/i386-stub.c b/gdb/stubs/i386-stub.c index cc741fb7a1e..dbeea0f8b37 100644 --- a/gdb/stubs/i386-stub.c +++ b/gdb/stubs/i386-stub.c @@ -738,7 +738,7 @@ hexToInt (char **ptr, int *intValue) } /* - * This function does all command procesing for interfacing to gdb. + * This function does all command processing for interfacing to gdb. */ void handle_exception (int exceptionVector) diff --git a/gdb/stubs/ia64vms-stub.c b/gdb/stubs/ia64vms-stub.c index 7f7aa4e47dd..2a51b782348 100644 --- a/gdb/stubs/ia64vms-stub.c +++ b/gdb/stubs/ia64vms-stub.c @@ -138,7 +138,7 @@ static struct debug_flag debug_flags[] = /* Disp packets exchanged with gdb. */ DEBUG_FLAG_ENTRY("packets"), #define trace_pkt (debug_flags[0].val) - /* Display entry point informations. */ + /* Display entry point information. */ DEBUG_FLAG_ENTRY("entry"), #define trace_entry (debug_flags[1].val) /* Be verbose about exceptions. */ @@ -1254,7 +1254,7 @@ str2pkt (const char *str) gdb_buf[gdb_blen++] = *str++; } -/* Extract a number fro the packet. */ +/* Extract a number from the packet. */ static unsigned __int64 pkt2val (const unsigned char *pkt, unsigned int *pos) diff --git a/gdb/stubs/m32r-stub.c b/gdb/stubs/m32r-stub.c index 58212efd40d..30a43c73f9e 100644 --- a/gdb/stubs/m32r-stub.c +++ b/gdb/stubs/m32r-stub.c @@ -202,7 +202,7 @@ static unsigned char *strcpy (unsigned char *, const unsigned char *); static int strlen (const unsigned char *); /* - * This function does all command procesing for interfacing to gdb. + * This function does all command processing for interfacing to gdb. */ void @@ -699,7 +699,7 @@ set_mem_err (void) /* Check the address for safe access ranges. As currently defined, this routine will reject the "expansion bus" address range(s). - To make those ranges useable, someone must implement code to detect + To make those ranges usable, someone must implement code to detect whether there's anything connected to the expansion bus. */ static int diff --git a/gdb/stubs/m68k-stub.c b/gdb/stubs/m68k-stub.c index 0a19f8e0a34..c63eee7d2c9 100644 --- a/gdb/stubs/m68k-stub.c +++ b/gdb/stubs/m68k-stub.c @@ -810,7 +810,7 @@ hexToInt (char **ptr, int *intValue) } /* - * This function does all command procesing for interfacing to gdb. + * This function does all command processing for interfacing to gdb. */ void handle_exception (int exceptionVector) @@ -995,7 +995,7 @@ handle_exception (int exceptionVector) printf ("frame at 0x%x has pc=0x%x, except#=%d\n", frame, frame->exceptionPC, frame->exceptionVector); - /* re-use the last frame, we're skipping it (longjump?) */ + /* reuse the last frame, we're skipping it (longjump?) */ frame = (Frame *) 0; _returnFromException (frame); /* this is a jump */ } diff --git a/gdb/stubs/sh-stub.c b/gdb/stubs/sh-stub.c index 59afc36e15a..3b0667e90e7 100644 --- a/gdb/stubs/sh-stub.c +++ b/gdb/stubs/sh-stub.c @@ -1501,7 +1501,7 @@ init_serial (void) { int i; - /* Clear TE and RE in Channel 1's SCR */ + /* Clear TE and RE in Channel 1's SCR. codespell:ignore. */ SCR1 &= ~(SCI_TE | SCI_RE); /* Set communication to be async, 8-bit data, no parity, 1 stop bit and use internal clock */ diff --git a/gdb/stubs/sparc-stub.c b/gdb/stubs/sparc-stub.c index acb7743184d..410f45235b1 100644 --- a/gdb/stubs/sparc-stub.c +++ b/gdb/stubs/sparc-stub.c @@ -544,7 +544,7 @@ hexToInt(char **ptr, int *intValue) } /* - * This function does all command procesing for interfacing to gdb. It + * This function does all command processing for interfacing to gdb. It * returns 1 if you should skip the instruction at the trap address, 0 * otherwise. */ diff --git a/gdb/stubs/z80-stub.c b/gdb/stubs/z80-stub.c index df87d7950bd..71f1554f8aa 100644 --- a/gdb/stubs/z80-stub.c +++ b/gdb/stubs/z80-stub.c @@ -25,7 +25,7 @@ 3. Implement getDebugChar() and putDebugChar(), functions must not return until data received or sent. 4. Implement all optional functions used to toggle breakpoints/watchpoints, - if supported. Do not write fuctions to toggle software breakpoints if + if supported. Do not write functions to toggle software breakpoints if you unsure (GDB will do itself). 5. Implement serial port initialization routine called at program start. 6. Add necessary debugger entry points to your program, for example: @@ -68,13 +68,13 @@ //#define DBG_SWBREAK_RST 0x08 /* if platform supports hardware breakpoints then define following macro - by name of function. Fuction must have next prototype: + by name of function. Function must have next prototype: int toggle_hwbreak(int set, void *addr); function must return 0 on success. */ //#define DBG_HWBREAK toggle_hwbreak /* if platform supports hardware watchpoints then define all or some of - following macros by names of functions. Fuctions prototypes: + following macros by names of functions. Functions prototypes: int toggle_watch(int set, void *addr, size_t size); // memory write watch int toggle_rwatch(int set, void *addr, size_t size); // memory read watch int toggle_awatch(int set, void *addr, size_t size); // memory access watch @@ -1074,7 +1074,7 @@ high_hex (byte v) FASTCALL static char low_hex (byte v) FASTCALL { -/* +/* codespell:ignore-begin __asm ld a, l and a, #0x0f @@ -1084,6 +1084,7 @@ low_hex (byte v) FASTCALL daa ld l, a __endasm; + codespell:ignore-end (void)v; */ v &= 0x0f;