[3/3,gdb/contrib] Fix "sofar->so far" misspelling

Message ID 20241006104603.7584-3-tdevries@suse.de
State Committed
Headers
Series [1/3,gdb/contrib] Factor out grep_or and sed_or in spellcheck.sh |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed

Commit Message

Tom de Vries Oct. 6, 2024, 10:46 a.m. UTC
  I forgot to follow up on a review comment and fix the "sofar->so far"
misspelling [1].

Fix this by adding it to gdb/contrib/common-misspellings.txt.

Tested on x86_64-linux.

[1] https://sourceware.org/pipermail/gdb-patches/2024-September/211894.html
---
 gdb/contrib/common-misspellings.txt | 1 +
 gdb/run-on-main-thread.c            | 2 +-
 gdb/symtab.c                        | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/contrib/common-misspellings.txt b/gdb/contrib/common-misspellings.txt
index 7281ec085dd..62e2c510ae3 100644
--- a/gdb/contrib/common-misspellings.txt
+++ b/gdb/contrib/common-misspellings.txt
@@ -15,3 +15,4 @@ 
 # Common spelling mistakes.
 
 inbetween->between, in between, in-between
+sofar->so far
diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c
index a6213d4d85e..746ea35ee9e 100644
--- a/gdb/run-on-main-thread.c
+++ b/gdb/run-on-main-thread.c
@@ -85,7 +85,7 @@  run_events (int error, gdb_client_data client_data)
 	{
 	  /* Should cancelation of a runnable event cancel the execution of
 	     the following one?  The answer is not clear, so keep doing what
-	     we've done sofar: ignore this exception.  */
+	     we've done so far: ignore this exception.  */
 	}
       catch (const gdb_exception &)
 	{
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 0a077469428..a479e920c60 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2992,7 +2992,7 @@  find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section)
 					   section.  */
 	    }
 
-	  /* Cust is best found sofar, save it.  */
+	  /* Cust is best found so far, save it.  */
 	  best_cust = cust;
 	  best_cust_range = range;
 	}