From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oVyaO0Pjr2kMayEAWB0awg (envelope-from ) for ; Tue, 10 Mar 2026 05:24:20 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UYCtSwbY; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=IkwUc5xO; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UYCtSwbY; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=IkwUc5xO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id ED2161E0DD; Tue, 10 Mar 2026 05:24:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D8D851E08D for ; Tue, 10 Mar 2026 05:24:18 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 897724B9DB56 for ; Tue, 10 Mar 2026 09:24:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 897724B9DB56 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UYCtSwbY; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=IkwUc5xO; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=UYCtSwbY; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=IkwUc5xO Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 5D6224BA2E3D for ; Tue, 10 Mar 2026 09:19:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5D6224BA2E3D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5D6224BA2E3D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773134354; cv=none; b=SBosOjpaMcHTfbD79MURIbkT9aiCuZBTR/FYDDBWRUryfqucjG3lIJyZB66U82A92akHuEYdI5r8QaK2Do2ejHmK/tsrSRXR8jhBMJGXkJ+k3CQOJTzWj6OOsrhM0Tt+bnupvtTg2sDe2RJIsUjlZ9DtNDiTX5aDVgn24Y3CYHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773134354; c=relaxed/simple; bh=BkvklXvkHvKGxEzg04bXlkzML7gxYInL8K1GH/RDBk4=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=pSz2gwV06myEA4fvzM9jHyabZHzCP0wUaQAAUlbVQTFkuDGmmW1YlGANlcJ2MiIX9tghTBAaA3uGsyVRbtgTo5j3L06m4MZ/20M4ivI+mjGs2I/4eGH9naNMk8XWxom2i/89DImrq2RPFzYL3QJ8Gx4nNm5Qt7S0w5UzW6xzEn8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D6224BA2E3D Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 54EE94D2E0 for ; Tue, 10 Mar 2026 09:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773134324; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+os0hivjhJwdDDg0cjcGkCSY6T05b/h8wG8Ex7UEFZ4=; b=UYCtSwbY51IwnW5W8AwGURfKBlCmaqCnqPa1mb8fYWDtKMyoVswRoZwD0y5l+MhRpcwfL2 rpwCtdHycSOCKloyEpwgoSkxiDlJqchCfl6EED/DZE+E/Fui7l2YiwzI/8W8JI4dXjEnnv RAUv8XuyChiExuOR7erEujDVVi2kYy0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773134324; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+os0hivjhJwdDDg0cjcGkCSY6T05b/h8wG8Ex7UEFZ4=; b=IkwUc5xOjF8yu0fjoDSzWLIS15OdKA8v9kraTdh8R1isMyGImfv3zCsndCmjwrvJPF21FQ KtQofjP1XcweGhDw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773134324; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+os0hivjhJwdDDg0cjcGkCSY6T05b/h8wG8Ex7UEFZ4=; b=UYCtSwbY51IwnW5W8AwGURfKBlCmaqCnqPa1mb8fYWDtKMyoVswRoZwD0y5l+MhRpcwfL2 rpwCtdHycSOCKloyEpwgoSkxiDlJqchCfl6EED/DZE+E/Fui7l2YiwzI/8W8JI4dXjEnnv RAUv8XuyChiExuOR7erEujDVVi2kYy0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773134324; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+os0hivjhJwdDDg0cjcGkCSY6T05b/h8wG8Ex7UEFZ4=; b=IkwUc5xOjF8yu0fjoDSzWLIS15OdKA8v9kraTdh8R1isMyGImfv3zCsndCmjwrvJPF21FQ KtQofjP1XcweGhDw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 40D453F3A0 for ; Tue, 10 Mar 2026 09:18:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QGGbDvThr2k2SAAAD6G6ig (envelope-from ) for ; Tue, 10 Mar 2026 09:18:44 +0000 From: Tom de Vries 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 Message-ID: <20260310091843.3214063-7-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260310091843.3214063-1-tdevries@suse.de> References: <20260310091843.3214063-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_TLS_ALL(0.00)[] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org 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