Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/3] [gdb/contrib] Handle double quotes in spellcheck.sh
Date: Tue, 12 Nov 2024 17:07:51 +0100	[thread overview]
Message-ID: <20241112160752.27661-3-tdevries@suse.de> (raw)
In-Reply-To: <20241112160752.27661-1-tdevries@suse.de>

Add handling of double quotes in gdb/contrib/spellcheck.sh, and fix the
following typos:
...
inheritence -> inheritance
psuedo -> pseudo
succeded -> succeeded
...

Tested on x86_64-linux.
---
 gdb/contrib/spellcheck.sh      | 2 ++
 gdb/darwin-nat-info.c          | 4 ++--
 gdb/sparc-tdep.c               | 2 +-
 gdb/sparc64-tdep.c             | 2 +-
 gdb/testsuite/config/slite.exp | 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/gdb/contrib/spellcheck.sh b/gdb/contrib/spellcheck.sh
index 3399e41ea7f..a95b325ffb3 100755
--- a/gdb/contrib/spellcheck.sh
+++ b/gdb/contrib/spellcheck.sh
@@ -37,6 +37,7 @@ grep_separators=(
     "	"
     ":"
     ","
+    "\""
 )
 declare -a sed_separators
 sed_separators=(
@@ -45,6 +46,7 @@ sed_separators=(
     "\t"
     ":"
     ","
+    "\""
 )
 
 # Pre: start of line, left parenthesis.
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index 121c3a58388..0157dfbb460 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, "inheritence", "Inh");
+  uiout->table_header (5, ui_left, "inheritance", "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");
@@ -662,7 +662,7 @@ darwin_debug_regions_recurse (task_t task)
 			     unparse_protection (r_info.protection));
 	uiout->field_string ("max-prot",
 			     unparse_protection (r_info.max_protection));
-	uiout->field_string ("inheritence",
+	uiout->field_string ("inheritance",
 			     unparse_inheritance (r_info.inheritance));
 	uiout->field_string ("share-mode",
 			     unparse_share_mode (r_info.share_mode));
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 43e70364d17..b48b130c0c5 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -380,7 +380,7 @@ static const char * const sparc32_register_names[] =
 #define SPARC32_NUM_REGS ARRAY_SIZE (sparc32_register_names)
 
 /* We provide the aliases %d0..%d30 for the floating registers as
-   "psuedo" registers.  */
+   "pseudo" registers.  */
 
 static const char * const sparc32_pseudo_register_names[] =
 {
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index d1e3ae155bf..dc8032f2969 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -786,7 +786,7 @@ static const char * const sparc64_register_names[] =
 #define SPARC64_NUM_REGS ARRAY_SIZE (sparc64_register_names)
 
 /* We provide the aliases %d0..%d62 and %q0..%q60 for the floating
-   registers as "psuedo" registers.  */
+   registers as "pseudo" registers.  */
 
 static const char * const sparc64_pseudo_register_names[] =
 {
diff --git a/gdb/testsuite/config/slite.exp b/gdb/testsuite/config/slite.exp
index e1068b74911..d472a63523d 100644
--- a/gdb/testsuite/config/slite.exp
+++ b/gdb/testsuite/config/slite.exp
@@ -139,7 +139,7 @@ proc gdb_load { arg } {
 	sleep 2
 	send_gdb "\x03"
 	gdb_expect {
-	     -re ".*$gdb_prompt $" { verbose "Run command succeded" }
+	     -re ".*$gdb_prompt $" { verbose "Run command succeeded" }
 	     default {
 		perror "error sending monitor run command"
 	    }
-- 
2.35.3


  parent reply	other threads:[~2024-11-12 16:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 16:07 [PATCH 0/3] [gdb/contrib] A few improvements for spellcheck.sh Tom de Vries
2024-11-12 16:07 ` [PATCH 1/3] [gdb/contrib] Handle parentheses in spellcheck.sh Tom de Vries
2024-11-12 16:07 ` Tom de Vries [this message]
2024-11-12 16:07 ` [PATCH 3/3] [gdb/contrib] Add "doens't->doesn't" to common-misspellings.txt Tom de Vries
2024-11-13 19:40 ` [PATCH 0/3] [gdb/contrib] A few improvements for spellcheck.sh Kevin Buettner
2024-11-13 20:07   ` 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=20241112160752.27661-3-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