From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 6/7] [pre-commit] Make gdb/stubs codespell-clean
Date: Tue, 10 Mar 2026 10:18:42 +0100 [thread overview]
Message-ID: <20260310091843.3214063-7-tdevries@suse.de> (raw)
In-Reply-To: <20260310091843.3214063-1-tdevries@suse.de>
Fix typos in gdb/stubs, and add "parm" to
gdb/contrib/codespell-ignore-words.txt.
---
.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 36da0d42ca6..c936cce67dc 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;
--
2.51.0
next prev parent reply other threads:[~2026-03-10 9:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
2026-03-10 9:18 ` [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy Tom de Vries
2026-03-10 9:18 ` [PATCH 2/7] [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml Tom de Vries
2026-03-10 9:18 ` [PATCH 3/7] [pre-commit] Make gdb/contrib codespell-clean Tom de Vries
2026-03-10 9:18 ` [PATCH 4/7] [pre-commit] Make gdb/nat codespell-clean Tom de Vries
2026-03-10 9:18 ` [PATCH 5/7] [pre-commit] Make gdb/features codespell-clean Tom de Vries
2026-03-10 9:18 ` Tom de Vries [this message]
2026-03-10 9:18 ` [PATCH 7/7] [pre-commit] Make gdb/doc codespell-clean Tom de Vries
2026-03-24 15:37 ` [PING][PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
2026-04-10 12:38 ` Tom de Vries
2026-04-24 13:20 ` [PING^2][PATCH " Tom de Vries
2026-06-01 12:34 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260310091843.3214063-7-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox