From: Tom de Vries Date: Wed, 13 Nov 2024 20:06:58 +0000 (+0100) Subject: [gdb/contrib] Handle double quotes in spellcheck.sh X-Git-Tag: gdb-16-branchpoint~437 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee126995f5032b61deebd278d3c248a6c2270fb8;p=thirdparty%2Fbinutils-gdb.git [gdb/contrib] Handle double quotes in spellcheck.sh 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. Approved-by: Kevin Buettner --- 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 "" gdb_expect { - -re ".*$gdb_prompt $" { verbose "Run command succeded" } + -re ".*$gdb_prompt $" { verbose "Run command succeeded" } default { perror "error sending monitor run command" }