From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iaDFOV39H2pMAjIAWB0awg (envelope-from ) for ; Wed, 03 Jun 2026 06:09:33 -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=uAa6fpC6; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=kaXtmm9H; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=d4u5/paX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=J0X1pOsb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E6BE61E0A6; Wed, 03 Jun 2026 06:09:33 -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 BE2991E062 for ; Wed, 03 Jun 2026 06:09:32 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E12184BA2E3D for ; Wed, 3 Jun 2026 10:09:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E12184BA2E3D 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=uAa6fpC6; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=kaXtmm9H; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=d4u5/paX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=J0X1pOsb Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id AFC154BA2E04 for ; Wed, 3 Jun 2026 10:05:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFC154BA2E04 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 AFC154BA2E04 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780481138; cv=none; b=fsUFgPFYXRpovAkb5FYsLY9rH7Jz0JQhY9ajj25tK+nN/KN3ASYpSrtagc8DYEDqmsUXLWE21/rXHt5eCuuASuD3G23Yf3KEuPFdkdNIEXdKOfkKPx7Nxac7VMTPSZ8RtSZwYcL1cDqzgbcsfXEv7sguVZL7U1iIu1aMuY7KpgA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780481138; c=relaxed/simple; bh=vvtKa7V3e/1Y6j2dQN8Co+VM9IxrECnO/zBG1F8R1ZY=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=Q5c73rskUM1ZpK23Jw53D21ZMlPzfMNhLOdNTQSVRnLSv6uwW3HXx/0NVvmdt5DBFGEL2WLnrJdArzgZeKteti87MJipnfuc6DI66y7IiukPr5MnyJgs83fb3M1QtKK2t9pQvdXZYB7TEGJBFjvGqkRsh1obPQtERN3l2Rf4l2s= ARC-Authentication-Results: i=1; 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=uAa6fpC6; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=kaXtmm9H; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=d4u5/paX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=J0X1pOsb DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFC154BA2E04 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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-out2.suse.de (Postfix) with ESMTPS id 2DEBF674A0 for ; Wed, 3 Jun 2026 10:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1780481118; 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=H/B5On8WCv3z/Azcc2TVECDTVvMCJhUARTI80gdnmYQ=; b=uAa6fpC6DFoY/RGfHfhDNH09L18ZLa910fQkCSwWI+G/QfwF3chVJ9WQOR2OkyU3Q9q+EG C+JgQR39VHNcYwVIKVMyLjlow/RRtuSR003sm44GifoS4FUdgf2poYi6n64yR3l8myVIYe A+2VO7Zf8HexjXLkuLgtOf17z4844c4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1780481118; 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=H/B5On8WCv3z/Azcc2TVECDTVvMCJhUARTI80gdnmYQ=; b=kaXtmm9HK4xWgzBU3xYrMHrR+VuDPvT5BGadsKhew67wt7Wszgng4Sp7v5t2toUCPx8J4Y fR/czlBV2kwVtpDg== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="d4u5/paX"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=J0X1pOsb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1780481117; 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=H/B5On8WCv3z/Azcc2TVECDTVvMCJhUARTI80gdnmYQ=; b=d4u5/paXW+K1UbltLHOOsMesCz7svqqOPSqVp0yKbViri7L2ajD2vUxHfP+9hE9UHe8LbD XjF0C66tTjqFvQM6uRnQY+GizshqoM1OosHBKmdBQsjo0vjpZXR+T8lMlEQIoPHxhaXbrP 1TnYYJN+CuPulowjEZxkLlN3srmzMB0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1780481117; 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=H/B5On8WCv3z/Azcc2TVECDTVvMCJhUARTI80gdnmYQ=; b=J0X1pOsbyslUVaFF44aY0MTGsnroW9FeiQggGaAIReWjLTZhjtY6+ZLoDG9UXoE1eU8tOz z2dTEZtm5PShO3Cw== 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 195395A4E3 for ; Wed, 3 Jun 2026 10:05:17 +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 AE/ABF38H2pjewAAD6G6ig (envelope-from ) for ; Wed, 03 Jun 2026 10:05:17 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 5/9] [gdb] Fix codespell false positives by ignoring Date: Wed, 3 Jun 2026 12:05:12 +0200 Message-ID: <20260603100516.144737-6-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260603100516.144737-1-tdevries@suse.de> References: <20260603100516.144737-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.01 / 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)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[cmu.edu:email,wisc.edu:email,suse.de:mid,suse.de:dkim,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: 2DEBF674A0 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 codespell false positives in the gdb dir, by ignoring them. --- gdb/ada-lang.c | 2 ++ gdb/arc-linux-tdep.c | 4 ++++ gdb/avr-tdep.c | 5 +++-- gdb/bfin-linux-tdep.c | 2 +- gdb/bfin-tdep.c | 2 ++ gdb/completer.h | 2 +- gdb/cp-support.c | 2 +- gdb/darwin-nat-info.c | 2 +- gdb/displaced-stepping.h | 2 +- gdb/i387-tdep.c | 2 ++ gdb/mips-tdep.c | 2 ++ gdb/nds32-tdep.c | 2 ++ gdb/ppc-linux-tdep.c | 4 ++-- gdb/riscv-tdep.c | 2 ++ gdb/s390-linux-tdep.c | 2 ++ gdb/s390-tdep.c | 6 ++++++ gdb/source.c | 3 ++- gdb/utils.c | 4 +++- gdb/valprint.c | 8 ++++---- gdb/value.c | 3 ++- gdb/x86-windows-nat.c | 2 ++ gdb/xtensa-xtregs.c | 2 ++ 22 files changed, 49 insertions(+), 16 deletions(-) diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index cb741647d47..823ec6d667e 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -813,6 +813,7 @@ ada_main_name () of NULLs. */ const struct ada_opname_map ada_opname_table[] = { + /* codespell:ignore-begin. */ {"Oadd", "\"+\"", BINOP_ADD}, {"Osubtract", "\"-\"", BINOP_SUB}, {"Omultiply", "\"*\"", BINOP_MUL}, @@ -834,6 +835,7 @@ const struct ada_opname_map ada_opname_table[] = { {"Onot", "\"not\"", UNOP_LOGICAL_NOT}, {"Oadd", "\"+\"", UNOP_PLUS}, {"Osubtract", "\"-\"", UNOP_NEG}, + /* codespell:ignore-end. */ {NULL, NULL} }; diff --git a/gdb/arc-linux-tdep.c b/gdb/arc-linux-tdep.c index 04142c04557..572b39b27d4 100644 --- a/gdb/arc-linux-tdep.c +++ b/gdb/arc-linux-tdep.c @@ -337,6 +337,8 @@ arc_linux_sw_breakpoint_from_kind (struct gdbarch *gdbarch, : arc_linux_trap_s_le); } +/* codespell:ignore-begin. Ignore SCOND. */ + /* Check for an atomic sequence of instructions beginning with an LLOCK instruction and ending with a SCOND instruction. @@ -409,6 +411,8 @@ handle_atomic_sequence (arc_instruction insn, disassemble_info *di) return next_pcs; } +/* codespell:ignore-end. */ + /* Implement the "software_single_step" gdbarch method. */ static std::vector diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index f445a2db6ba..254ff891596 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -747,12 +747,13 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end, gdb_assert (vpc < AVR_MAX_PROLOGUE_SIZE); - /* Handle static small stack allocation using rcall or push. */ + /* Handle static small stack allocation using + rcall or push. codespell:ignore rcall */ avr_gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); while (scan_stage == 1 && vpc < len) { insn = extract_unsigned_integer (&prologue[vpc], 2, byte_order); - if (insn == 0xd000) /* rcall .+0 */ + if (insn == 0xd000) /* rcall .+0. codespell:ignore rcall. */ { info->size += tdep->call_length; vpc += 2; diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c index a0f1dcf80a0..9688728a655 100644 --- a/gdb/bfin-linux-tdep.c +++ b/gdb/bfin-linux-tdep.c @@ -120,7 +120,7 @@ static const struct tramp_frame bfin_linux_sigframe = 4, { { 0x00ADE128, 0xffffffff }, /* P0 = __NR_rt_sigreturn; */ - { 0x00A0, 0xffff }, /* EXCPT 0; */ + { 0x00A0, 0xffff }, /* EXCPT 0; codespell:ignore excpt. */ { TRAMP_SENTINEL_INSN, ULONGEST_MAX }, }, bfin_linux_sigframe_init, diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c index 2a9e458e51c..a2094044beb 100644 --- a/gdb/bfin-tdep.c +++ b/gdb/bfin-tdep.c @@ -108,10 +108,12 @@ #define P_RTS 0x0010 /* MNOP */ #define P_MNOP 0xC803 +/* codespell:ignore-begin. Ignore EXCPT. */ /* EXCPT, 16-bit, min */ #define P_EXCPT_MIN 0x00A0 /* EXCPT, 16-bit, max */ #define P_EXCPT_MAX 0x00AF +/* codespell:ignore-end. */ /* multi instruction mask 1, 16-bit */ #define P_BIT_MULTI_INS_1 0xC000 /* multi instruction mask 2, 16-bit */ diff --git a/gdb/completer.h b/gdb/completer.h index be8f4814158..6ab1246fff1 100644 --- a/gdb/completer.h +++ b/gdb/completer.h @@ -203,7 +203,7 @@ class completion_match_for_lcd /* The ignored substring ranges within M_MATCH. E.g., if we were looking for completion matches for C++ functions starting with - "functio" + "functio" codespell:ignore functio and successfully match: "function[abi:cxx11](int)" the ignored ranges vector will contain an entry that delimits the diff --git a/gdb/cp-support.c b/gdb/cp-support.c index d040ad79469..c684d1a1723 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -2251,7 +2251,7 @@ test_cp_remove_params () CHECK ("A::(anonymous namespace)", "A::(anonymous namespace)"); - CHECK_INCOMPL ("A::(anonymou", "A"); + CHECK_INCOMPL ("A::(anonymou", "A"); /* codespell:ignore anonymou. */ CHECK ("A::foo()", "A::foo"); diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index d1befa7d8c3..4b7a27a0d5f 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -630,7 +630,7 @@ darwin_debug_regions_recurse (task_t task) } uiout->table_header (3, ui_left, "min-prot", "Min"); uiout->table_header (3, ui_left, "max-prot", "Max"); - uiout->table_header (5, ui_left, "inheritance", "Inh"); + uiout->table_header (5, ui_left, "inheritance", "Inh"); /* codespell:ignore inh. */ uiout->table_header (9, ui_left, "share-mode", "Shr"); uiout->table_header (1, ui_left, "depth", "D"); uiout->table_header (3, ui_left, "submap", "Sm"); diff --git a/gdb/displaced-stepping.h b/gdb/displaced-stepping.h index cff276827e0..c85f402e36e 100644 --- a/gdb/displaced-stepping.h +++ b/gdb/displaced-stepping.h @@ -61,7 +61,7 @@ displaced_step_prepare_status_str (displaced_step_prepare_status status) return "OK"; case DISPLACED_STEP_PREPARE_STATUS_CANT: - return "CANT"; + return "CANT"; /* codespell:ignore cant. */ case DISPLACED_STEP_PREPARE_STATUS_UNAVAILABLE: return "UNAVAILABLE"; diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index f33f5ad046e..f22a5e02bbb 100644 --- a/gdb/i387-tdep.c +++ b/gdb/i387-tdep.c @@ -114,6 +114,7 @@ print_i387_status_word (int status_p, gdb_printf (file, "%s", hex_string_custom (status, 4)); gdb_puts (" ", file); + /* codespell:ignore-begin. */ gdb_printf (file, " %s", (status & 0x0001) ? "IE" : " "); gdb_printf (file, " %s", (status & 0x0002) ? "DE" : " "); gdb_printf (file, " %s", (status & 0x0004) ? "ZE" : " "); @@ -129,6 +130,7 @@ print_i387_status_word (int status_p, gdb_printf (file, " %s", (status & 0x0200) ? "C1" : " "); gdb_printf (file, " %s", (status & 0x0400) ? "C2" : " "); gdb_printf (file, " %s", (status & 0x4000) ? "C3" : " "); + /* codespell:ignore-end. */ gdb_puts ("\n", file); diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 995a3b10915..fe0482fe5bf 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -2,8 +2,10 @@ Copyright (C) 1988-2026 Free Software Foundation, Inc. + codespell:ignore-begin Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU and by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin. + codespell:ignore-end This file is part of GDB. diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index 3640b31ec27..a00967d3396 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -329,6 +329,7 @@ static const reggroup *nds32_secur_reggroup; static void nds32_init_reggroups (void) { + /* codespell:ignore-begin. */ nds32_cr_reggroup = reggroup_new ("cr", USER_REGGROUP); nds32_ir_reggroup = reggroup_new ("ir", USER_REGGROUP); nds32_mr_reggroup = reggroup_new ("mr", USER_REGGROUP); @@ -339,6 +340,7 @@ nds32_init_reggroups (void) nds32_racr_reggroup = reggroup_new ("racr", USER_REGGROUP); nds32_idr_reggroup = reggroup_new ("idr", USER_REGGROUP); nds32_secur_reggroup = reggroup_new ("secur", USER_REGGROUP); + /* codespell:ignore-end. */ } static void diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 07969454b39..abf624f8843 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -2064,7 +2064,7 @@ linux_dwarf2_omit_typedef_p (struct type *target_type, static const char * ppc64le_gnu_triplet_regexp (struct gdbarch *gdbarch) { - return "p(ower)?pc64le"; + return "p(ower)?pc64le"; /* codespell:ignore. */ } /* Specify the powerpc64 target triplet. @@ -2076,7 +2076,7 @@ ppc64le_gnu_triplet_regexp (struct gdbarch *gdbarch) static const char * ppc64_gnu_triplet_regexp (struct gdbarch *gdbarch) { - return "p(ower)?pc64"; + return "p(ower)?pc64"; /* codespell:ignore. */ } /* Implement the linux_gcc_target_options method. */ diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 6b5c9c02d46..fe88379281c 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -1220,9 +1220,11 @@ riscv_print_one_register_info (struct gdbarch *gdbarch, d = value_as_long (val); xlen = size * 8; gdb_printf (file, + /* codespell:ignore-begin. */ "\tSD:%X VM:%02X MXR:%X PUM:%X MPRV:%X XS:%X " "FS:%X MPP:%x HPP:%X SPP:%X MPIE:%X HPIE:%X " "SPIE:%X UPIE:%X MIE:%X HIE:%X SIE:%X UIE:%X", + /* codespell:ignore-end. */ (int) ((d >> (xlen - 1)) & 0x1), (int) ((d >> 24) & 0x1f), (int) ((d >> 19) & 0x1), diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c index 3cd6b359d13..174e0479fbe 100644 --- a/gdb/s390-linux-tdep.c +++ b/gdb/s390-linux-tdep.c @@ -336,6 +336,7 @@ s390_core_read_description (struct gdbarch *gdbarch, asection *section = bfd_get_section_by_name (abfd, ".reg"); std::optional auxv = target_read_auxv_raw (target); CORE_ADDR hwcap = linux_get_hwcap (auxv, target, gdbarch); + /* codespell:ignore-begin. */ bool high_gprs, v1, v2, te, vx, gs; if (!section) @@ -370,6 +371,7 @@ s390_core_read_description (struct gdbarch *gdbarch, te ? tdesc_s390x_te_linux64 : v2 ? tdesc_s390x_linux64v2 : v1 ? tdesc_s390x_linux64v1 : tdesc_s390x_linux64).get (); + /* codespell:ignore-end. */ default: return NULL; diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index f9d7bdd04e4..55efdd82895 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -301,6 +301,7 @@ s390_is_partial_instruction (struct gdbarch *gdbarch, CORE_ADDR loc, int *len) break; } + /* codespell:ignore-begin. */ switch (insn) { case 0xb255: /* MVST */ @@ -325,6 +326,7 @@ s390_is_partial_instruction (struct gdbarch *gdbarch, CORE_ADDR loc, int *len) *len = 4; return 1; } + /* codespell:ignore-end. */ return 0; } @@ -3372,6 +3374,7 @@ s390_process_record (struct gdbarch *gdbarch, struct regcache *regcache, return -1; break; + /* codespell:ignore-begin. */ case 0x20: /* LPDR - load positive */ case 0x30: /* LPER - load positive */ case 0x21: /* LNDR - load negative */ @@ -3396,6 +3399,7 @@ s390_process_record (struct gdbarch *gdbarch, struct regcache *regcache, case 0x3f: /* SUR - subtract unnormalized */ case 0x6f: /* SW - subtract unnormalized */ case 0x7f: /* SU - subtract unnormalized */ + /* codespell:ignore-end. */ /* float destination + flags */ if (record_full_arch_list_add_reg (regcache, S390_F0_REGNUM + inib[2])) return -1; @@ -3922,7 +3926,9 @@ s390_process_record (struct gdbarch *gdbarch, struct regcache *regcache, /* 0xb29e-0xb2a4 undefined */ + /* codespell:ignore-begin. */ case 0xb2a5: /* TRE - translate extended [partial] */ + /* codespell:ignore-end. */ regcache_raw_read_unsigned (regcache, S390_R0_REGNUM + inib[6], &tmp); oaddr = s390_record_address_mask (gdbarch, regcache, tmp); regcache_raw_read_unsigned (regcache, S390_R0_REGNUM + (inib[6] | 1), &tmp); diff --git a/gdb/source.c b/gdb/source.c index 6f8afb560d2..6028c29deae 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1923,7 +1923,8 @@ The address is also stored as the value of \"$_\".")); Search for regular expression (see regex(3)) from last line listed.\n\ The matching line number is also stored as the value of \"$_\".")); add_com_alias ("search", forward_search_cmd, class_files, 0); - add_com_alias ("fo", forward_search_cmd, class_files, 1); + add_com_alias ("fo", /* codespell:ignore. */ + forward_search_cmd, class_files, 1); cmd_list_element *reverse_search_cmd = add_com ("reverse-search", class_files, reverse_search_command, _("\ diff --git a/gdb/utils.c b/gdb/utils.c index 4f99cdb425b..4a46ed34f4c 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2937,7 +2937,9 @@ strncmp_iw_with_mode_tests () "\tfoo\t<\tbar\t<\tbaz\t<\tquxi\t>\t>\t>\t(int)", NORMAL); CHECK_MATCH ("foo>>(int)", " \tfoo \t< \tbar \t< \tbaz \t< \tquxi \t> \t> \t> \t( \tint \t)", NORMAL); - CHECK_MATCH ("foo>::foo(quxi &)", "fo", NORMAL); + CHECK_MATCH ("foo>::foo(quxi &)", + "fo", /* codespell:ignore. */ + NORMAL); CHECK_MATCH ("foo>::foo(quxi &)", "foo", NORMAL); CHECK_MATCH ("foo>::foo(quxi &)", "foo>::", NORMAL); CHECK_MATCH ("foo>::foo(quxi &)", "foo >::foo", NORMAL); diff --git a/gdb/valprint.c b/gdb/valprint.c index b266db550d1..dc252c7e331 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1334,10 +1334,10 @@ value_print_scalar_formatted (struct value *val, } /* Print a number according to FORMAT which is one of d,u,x,o,b,h,w,g. - The raison d'etre of this function is to consolidate printing of - LONG_LONG's into this one function. The format chars b,h,w,g are - from print_scalar_formatted(). Numbers are printed using C - format. + The codespell:ignore-begin raison d'etre codespell:ignore-end of this + function is to consolidate printing of LONG_LONG's into this one function. + The format chars b,h,w,g are from print_scalar_formatted(). Numbers are + printed using C format. USE_C_FORMAT means to use C format in all cases. Without it, 'o' and 'x' format do not include the standard C radix prefix diff --git a/gdb/value.c b/gdb/value.c index 7213afa8147..168427770c1 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1717,7 +1717,8 @@ value::record_latest () /* We preserve VALUE_LVAL so that the user can find out where it was fetched from. This is a bit dubious, because then *&$1 does not just return $1 - but the current contents of that location. c'est la vie... */ + but the current contents of that location. codespell:ignore-begin + C'est la vie... codespell:ignore-end. */ set_modifiable (false); value_history.push_back (release_value (this)); diff --git a/gdb/x86-windows-nat.c b/gdb/x86-windows-nat.c index 61764da8deb..27adeb1f154 100644 --- a/gdb/x86-windows-nat.c +++ b/gdb/x86-windows-nat.c @@ -418,6 +418,7 @@ display_selector (HANDLE thread, DWORD sel) { return get_thread_selector_entry (context, thread, sel, &info); }); + /* codespell:ignore-begin. */ if (ret) { int base, limit; @@ -490,6 +491,7 @@ display_selector (HANDLE thread, DWORD sel) gdb_printf ("Invalid selector 0x%x.\n", (unsigned) sel); return 0; } + /* codespell:ignore-end. */ } static void diff --git a/gdb/xtensa-xtregs.c b/gdb/xtensa-xtregs.c index 1b35308af12..23e153f9ddb 100644 --- a/gdb/xtensa-xtregs.c +++ b/gdb/xtensa-xtregs.c @@ -33,7 +33,9 @@ typedef struct const xtensa_regtable_t xtensa_regmap_table[] = { + /* codespell:ignore-begin. */ /* gnum,gofs,cpofs,ofs,siz,cp, dbnum, name */ + /* codespell:ignore-end. */ { 44, 176, 0, 0, 4, -1, 0x020c, "scompare1" }, { 0 } }; -- 2.51.0