]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix "the the"
authorTom de Vries <tdevries@suse.de>
Tue, 16 Dec 2025 15:20:22 +0000 (16:20 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 16 Dec 2025 15:20:22 +0000 (16:20 +0100)
Replace "the the" with "the".

Result of running:
...
$ find gdb* -type f | egrep -v ChangeLog | xargs sed -i 's/the the /the /'
$ find gdb* -type f | egrep -v ChangeLog | xargs sed -i 's/the the$/the/'
...

The only change I have doubts about, is this comment in queue_comp_unit in
gdb/dwarf2/read.c:
...
    ... .  If the CU gets enqueued by this function but its DIEs
-   are not yet loaded, the the caller must load the CU's DIEs to ensure the
+   are not yet loaded, the caller must load the CU's DIEs to ensure the
    invariant is respected.
...
where I think "the the" -> "then the" also make sense.  But for now, I'm going
with "the the" -> "the".

Tested by building gdb on x86_64-linux.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
21 files changed:
gdb/README
gdb/aarch64-linux-nat.c
gdb/ada-lex.l
gdb/amdgpu-tdep.c
gdb/arm-tdep.c
gdb/doc/gdb.texinfo
gdb/dwarf2/read.c
gdb/gdbarch-gen.h
gdb/gdbarch_components.py
gdb/gdbthread.h
gdb/minsyms.c
gdb/ppc-linux-nat.c
gdb/symtab.c
gdb/symtab.h
gdb/testsuite/gdb.base/corefile3.exp
gdb/testsuite/gdb.base/stap-probe.exp
gdb/testsuite/gdb.base/testenv.exp
gdb/testsuite/gdb.cp/psymtab-parameter.exp
gdb/testsuite/gdb.fortran/types.exp
gdb/testsuite/gdb.python/py-styled-execute.exp
gdb/testsuite/lib/dwarf.exp

index 5dc2e7e7ad3305e671cfd4a4a2323f9781592a29..492b0891668d85fd56a1da55aea680f09114234c 100644 (file)
@@ -421,7 +421,7 @@ more obscure GDB `configure' options are not listed here.
 `--enable-binary-file-formats=all'
     Configure GDB to only be be able to read selected file formats.
     The special value "all" causes all file formats to be compiled
-    in, and is the the default behavior of the option.  This option
+    in, and is the default behavior of the option.  This option
     is meant for advanced users who are sure of what they expect,
     if you are unsure which options you will need on your debugging
     sessions, we recommend that you not use this feature.  The
index b4bc921f767a8100e0b39affc2538bd34e0e12c0..22fb3361c0bb9391aa72c5e1f96f8947cc4fa247 100644 (file)
@@ -767,7 +767,7 @@ aarch64_linux_nat_target::fetch_registers (struct regcache *regcache,
 }
 
 /* The AArch64 version of the "store_registers" target_ops method.  Copy
-   the value of register REGNO from REGCACHE into the the target.  */
+   the value of register REGNO from REGCACHE into the target.  */
 
 static void
 aarch64_store_registers (struct regcache *regcache, int regno)
@@ -844,7 +844,7 @@ aarch64_store_registers (struct regcache *regcache, int regno)
 
 /* A version of the "store_registers" target_ops method used when running
    32-bit ARM code on an AArch64 target.  Copy the value of register REGNO
-   from REGCACHE into the the target.  */
+   from REGCACHE into the target.  */
 
 static void
 aarch32_store_registers (struct regcache *regcache, int regno)
index acd8cf3690b02789114d2901dc7aec4c8b2d39eb..178b53b3236316554de70e4898b29ff116a46ecd 100644 (file)
@@ -375,7 +375,7 @@ processInt (struct parser_state *par_state, const char *base0,
   long exp;
   int base;
   /* For the based literal with an "f" prefix, we'll return a
-     floating-point number.  This counts the the number of "l"s seen,
+     floating-point number.  This counts the number of "l"s seen,
      to decide the width of the floating-point number to return.  -1
      means no "f".  */
   int floating_point_l_count = -1;
index ec2fac09448c6c0e263344eddcaff2adc97788a5..1cbb1cd6b19afc49dc4567907a87ba25857ee35b 100644 (file)
@@ -84,7 +84,7 @@ amdgpu_register_name (struct gdbarch *gdbarch, int regnum)
      However, at most one register with a given name is actually allocated for
      a specific wave.  If INFERIOR_PTID represents a GPU wave, we query
      amd-dbgapi to know whether the requested register actually exists for the
-     current wave, so there won't be duplicates in the the register names we
+     current wave, so there won't be duplicates in the register names we
      report for that wave.
 
      But there are two known cases where INFERIOR_PTID doesn't represent a GPU
index eef985bb27659a23a42b06cd3f92611c0637b1ea..f98d766dbf797c49b4ac02d3394a09170ec367ce 100644 (file)
@@ -3449,7 +3449,7 @@ arm_m_exception_cache (const frame_info_ptr &this_frame)
      to the exception and if FPU is used (causing extended stack frame).  */
 
   /* In the lockup state PC contains a lockup magic value.
-     The PC value of the the next outer frame is irreversibly
+     The PC value of the next outer frame is irreversibly
      lost.  The other registers are intact so LR likely contains
      PC of some frame next to the outer one, but we cannot analyze
      the next outer frame without knowing its PC
index f77fe17c81fe2cb17e092add4b338bd0940fe138..61e43d971fb28a920b3a558cae2fd78986a7c81c 100644 (file)
@@ -8401,7 +8401,7 @@ default, ten instructions are disassembled.  This can be changed using
 the @code{set record instruction-history-size} command.  Instructions
 are printed in execution order.
 
-It can also print mixed source+disassembly if you specify the the
+It can also print mixed source+disassembly if you specify the
 @code{/m} or @code{/s} modifier, and print the raw instructions in hex
 as well as in symbolic form by specifying the @code{/r} or @code{/b}
 modifier.  The behavior of the @code{/m}, @code{/s}, @code{/r}, and
index 162c0bd57bbd1beadb403c4aef5beba138332ee2..12f3e5f0e3dde2f519060f65a97e7895c56f4846 100644 (file)
@@ -4071,7 +4071,7 @@ queue_comp_unit (dwarf2_per_cu *per_cu, dwarf2_per_objfile *per_objfile)
    (present in `dwarf2_per_bfd::queue`), then its DIEs are loaded
    (a dwarf2_cu object exists for this CU, and `dwarf2_per_objfile::get_cu`
    returns non-nullptr).  If the CU gets enqueued by this function but its DIEs
-   are not yet loaded, the the caller must load the CU's DIEs to ensure the
+   are not yet loaded, the caller must load the CU's DIEs to ensure the
    invariant is respected.
 
    The caller is therefore not required to load the CU's DIEs (we return false)
index 180e7ced7edbf3b4afecd6c8ba7ac923e3179b57..9ae614fe6dd00ef4e17b33bb445d0a0b01bcdd18 100644 (file)
@@ -487,7 +487,7 @@ extern void set_gdbarch_return_value_as_value (struct gdbarch *gdbarch, gdbarch_
 
 /* Return the address at which the value being returned from
    the current function will be stored.  This routine is only
-   called if the current function uses the the "struct return
+   called if the current function uses the "struct return
    convention".
 
    May return 0 when unable to determine that address. */
index eac068028edbec53d86f6094628b6ff144b64b45..b19c32aca27a26ff80fe1ae69364a69421b0e030 100644 (file)
@@ -930,7 +930,7 @@ Function(
     comment="""
 Return the address at which the value being returned from
 the current function will be stored.  This routine is only
-called if the current function uses the the "struct return
+called if the current function uses the "struct return
 convention".
 
 May return 0 when unable to determine that address.""",
index 28bac23cf74f2e052aa6b590bdb2002abb7dd7a0..0f6c5b126b65254b4989a146f4952fc0d69420f8 100644 (file)
@@ -146,7 +146,7 @@ struct thread_control_state
      any inlined frames).  */
   struct frame_id step_stack_frame_id {};
 
-  /* True if the the thread is presently stepping over a breakpoint or
+  /* True if the thread is presently stepping over a breakpoint or
      a watchpoint, either with an inline step over or a displaced (out
      of line) step, and we're now expecting it to report a trap for
      the finished single step.  */
@@ -1009,7 +1009,7 @@ extern void global_thread_step_over_chain_remove (thread_info *tp);
 
 extern int thread_is_in_step_over_chain (struct thread_info *tp);
 
-/* Return the length of the the step over chain TP is in.
+/* Return the length of the step over chain TP is in.
 
    If TP is non-nullptr, the thread must be in a step over chain.
    TP may be nullptr, in which case it denotes an empty list, so a length of
index 90a0c601c59a36cdd5f4e95bcbaf4fb7bccb44fe..0ee9e236232f2edd4a6e673c2975abf3dc72785d 100644 (file)
@@ -1069,7 +1069,7 @@ const struct gnu_ifunc_fns *gnu_ifunc_fns_p = &stub_gnu_ifunc_fns;
 \f
 
 /* Return the leading symbol character for BFD ABFD.  If ABFD is nullptr,
-   return the leading symbol character from the the main objfile of PSPACE..  */
+   return the leading symbol character from the main objfile of PSPACE..  */
 
 static int
 get_symbol_leading_char (program_space *pspace, bfd *abfd)
index fd425654df7fd312d9491797bebce9bbae336a82..32c8de8cf67c6fc89a2e15727b0e2d7a13289339 100644 (file)
@@ -2793,7 +2793,7 @@ ppc_linux_nat_target::low_new_fork (struct lwp_info *parent,
     }
 }
 
-/* Copy the thread debug register state from the PARENT thread to the the
+/* Copy the thread debug register state from the PARENT thread to the
    state for CHILD_LWP, if we're using the HWDEBUG interface.  We assume
    the kernel copies the debug registers from one thread to another after
    a clone event.  The low_prepare_to_resume function is made to work
index 2eda0da532df4cc7cd745966f2e520b6185f8245..8d313ac0ef5a54c44374cbd94de570bb14ef6dd8 100644 (file)
@@ -4047,7 +4047,7 @@ find_epilogue_using_linetable (CORE_ADDR func_addr)
        }
       gdb_assert (it->unrelocated_pc () < unrel_end);
 
-      /* We're at the the last linetable entry of the current function.  This
+      /* We're at the last linetable entry of the current function.  This
         is probably where the epilogue begins, but since the DWARF 5 spec
         doesn't guarantee it, we iterate backwards through the current
         function until we either find the epilogue beginning, or are sure
index 9336f5d35a7e330b5ce635c6b231764f9ca6da70..e142040ad56089216dd5b26894919ff3316e7d2c 100644 (file)
@@ -736,7 +736,7 @@ struct minimal_symbol : public general_symbol_info
     return m_value.unrel_addr;
   }
 
-  /* The unrelocated address just after the end of the the minimal
+  /* The unrelocated address just after the end of the minimal
      symbol.  */
   unrelocated_addr unrelocated_end_address () const
   {
index bee393c983eed0fc67a746d7ba16037c8b71c332..0f18dc2672625a5d5dec010ebc9563c4e58cb3f4 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Create a core file with some mapped file regions, but ensure that
-# the the kernel should write the regions into the core file (e.g. r/w
+# the kernel should write the regions into the core file (e.g. r/w
 # file backed mapping).
 #
 # We then delete the file that backed the mapping and load the core
index 540daf3970b9e0abfec11a8adb32b57e92894759..277a92789cc27bcec255130c11e71e4535e1d941 100644 (file)
@@ -97,7 +97,7 @@ proc check_for_usable_xmm0_probe { binfile } {
     verbose -log "APB: Matched on '$ignore'"
     verbose -log "APB: arguments: '$arguments'"
 
-    # Check the the argument string mentions xmm0.
+    # Check the argument string mentions xmm0.
     if {![regexp {@%?xmm0} $arguments]} {
        verbose -log "APB: Prove doesn't use xmm0 register"
        return false
index a8fb3206497477bc22a7e30d264d22f61bc55908..a6fe086dc1ab8a740531221b90a6489c741cecad 100644 (file)
@@ -31,7 +31,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
      return -1
 }
 
-# Test that the the inferior sees EXPECTED env vars starting with
+# Test that the inferior sees EXPECTED env vars starting with
 # "TEST_GDB".
 proc test_num_test_vars {expected message} {
     set num [get_integer_valueof "j" -1 "$message, get num vars"]
index cbe51a5ad6042e2088e05b80ad2eb8b0ce965a1f..ab30fd389ef85c8dd48efae67b57b7a27285d509 100644 (file)
@@ -28,7 +28,7 @@ clean_restart $testfile.x
 gdb_test_no_output "set language c++"
 
 if { ![readnow] } {
-    # Check that the the CU (Compilation Unit) is unexpanded.
+    # Check that the CU (Compilation Unit) is unexpanded.
     gdb_test_no_output "maintenance info symtabs"
 }
 
index 03bc2ce6799c5c15652863f8c5e40329daf84a16..766a1bc843f3c975cbca5e6444fd04de5d34659f 100644 (file)
@@ -79,7 +79,7 @@ proc test_default_types {} {
     gdb_test "ptype complex" "type = complex\\*4"
 }
 
-# Test the the primitive Fortran types, those that GDB should always
+# Test the primitive Fortran types, those that GDB should always
 # know, even if the program does not define them, are in fact, known.
 proc test_primitive_types_known {} {
     foreach type {void character \
index 198dab52ddd7e7c7bd59263978977cd5f5ec6b9d..7b7f8326f2add5af17bf0b99ca65ab5f77142db9 100644 (file)
@@ -13,7 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Check the the output of gdb.execute can be styled or not depending
+# Check the output of gdb.execute can be styled or not depending
 # on the value of the third argument passed to gdb.execute.
 
 require allow_python_tests
index a6a31916204e0ce6468dd8a1a36d15eeef6ba9ce..ab73bb4dff4ffa146414b700c0f096dde5461a53 100644 (file)
@@ -509,7 +509,7 @@ proc get_func_info { name {options {debug}} } {
 # * Otherwise, if the attribute name has a default form (f.i. DW_FORM_addr for
 #   DW_AT_low_pc), then that one is used.
 # * Otherwise, an error is reported.  Either specify a form explicitly, or
-#   add a default for the the attribute name in _default_form.
+#   add a default for the attribute name in _default_form.
 #
 # CHILDREN is just Tcl code that can be used to define child DIEs.  It
 # is evaluated in the caller's context.