]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Make gdb/stubs codespell-clean
authorTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:33:48 +0000 (14:33 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:33:48 +0000 (14:33 +0200)
Fix typos in gdb/stubs, and add "parm" to
gdb/contrib/codespell-ignore-words.txt.

.pre-commit-config.yaml
gdb/contrib/codespell-ignore-words.txt
gdb/stubs/i386-stub.c
gdb/stubs/ia64vms-stub.c
gdb/stubs/m32r-stub.c
gdb/stubs/m68k-stub.c
gdb/stubs/sh-stub.c
gdb/stubs/sparc-stub.c
gdb/stubs/z80-stub.c

index dfd4cf77a6a2839dab6c7cd4a8b87e7b55e1986c..325287ee4407e3957c817f18ad082fdfa1348975 100644 (file)
@@ -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
index c86bd3f0972fe68cc238fb518ba8f55f1f82d17e..b6f80f3ce523c9fe572c165a422cf31fd658bf28 100644 (file)
@@ -3,3 +3,4 @@ SME
 Synopsys
 aranges
 fpr
+parm
index cc741fb7a1ed316e7600d2348aff47be33fd767c..dbeea0f8b3760e7b0dcd1585ec4822967b87dad8 100644 (file)
@@ -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)
index 7f7aa4e47dd198bfae68c2fdc2a19b423262dacb..2a51b782348f08851b7e53a0b450f2c5769195f4 100644 (file)
@@ -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)
index 58212efd40d39c148317338c193b04ac8c032c6e..30a43c73f9ece4724bb9813ad552e44d83690f91 100644 (file)
@@ -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
index 0a19f8e0a34c731767c47ca50aea49b60c9ad705..c63eee7d2c97e627ade160e651c5f243e9fcb6e1 100644 (file)
@@ -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 */
                    }
index 59afc36e15a6e966033ee4e414b56d93444ad530..3b0667e90e70d738487821e8dc82998fdbfbe53f 100644 (file)
@@ -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 */
index acb7743184de10638b1a906b3f22577a772ee2a5..410f45235b10ba0f2b23a1f7a9871aa72167a474 100644 (file)
@@ -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.
  */
index df87d7950bd2b14528500076f9b7fa6dcc03811b..71f1554f8aa9ec79681cfd3ec4493a1fc99a7ffd 100644 (file)
@@ -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:
 //#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;