From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 2/3] [gdb] Fix double words
Date: Thu, 3 Sep 2026 07:47:21 +0200 [thread overview]
Message-ID: <20260903054722.1461007-2-tdevries@suse.de> (raw)
In-Reply-To: <20260903054722.1461007-1-tdevries@suse.de>
Result of:
...
$ find gdb* -type f | xargs sed -i "s/ is is / is /"
...
and likewise for with, of, we, be, by, a.
Handle "to to" manually, one of those is fixed as "to do".
---
gdb/NEWS | 2 +-
gdb/README | 2 +-
gdb/arm-tdep.c | 2 +-
gdb/avr-tdep.c | 2 +-
gdb/breakpoint.c | 4 ++--
gdb/breakpoint.h | 2 +-
gdb/c-typeprint.c | 2 +-
gdb/doc/python.texi | 4 ++--
gdb/dwarf2/unit-head.c | 2 +-
gdb/frame.h | 2 +-
gdb/frv-linux-tdep.c | 2 +-
gdb/gdbthread.h | 2 +-
gdb/infrun.c | 2 +-
gdb/m68k-linux-tdep.c | 2 +-
gdb/or1k-tdep.c | 2 +-
gdb/python/lib/gdb/dap/varref.py | 2 +-
gdb/python/python-internal.h | 2 +-
gdb/remote.c | 4 ++--
gdb/remote.h | 2 +-
gdb/svr4-tls-tdep.c | 2 +-
gdb/testsuite/gdb.base/call-sc.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.exp | 2 +-
gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/forward-spec.exp | 2 +-
gdb/varobj.c | 2 +-
gdbserver/server.cc | 4 ++--
27 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/gdb/NEWS b/gdb/NEWS
index 10c182067f9..222f38e3d52 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -5812,7 +5812,7 @@ Renesas RL78 rl78-*-elf
This keyword, when provided, will direct the output to either
stdout, stderr, or GDB's logging output.
- ** Parameters can now be be sub-classed in Python, and in particular
+ ** Parameters can now be sub-classed in Python, and in particular
you may implement the get_set_doc and get_show_doc functions.
This improves how Parameter set/show documentation is processed
and allows for more dynamic content.
diff --git a/gdb/README b/gdb/README
index 791bbd23b6c..81e3cd712a7 100644
--- a/gdb/README
+++ b/gdb/README
@@ -418,7 +418,7 @@ more obscure GDB `configure' options are not listed here.
`--enable-binary-file-formats=FORMAT,FORMAT,...'
`--enable-binary-file-formats=all'
- Configure GDB to only be be able to read selected file formats.
+ Configure GDB to only be able to read selected file formats.
The special value "all" causes all file formats to be compiled
in, and is the default behavior of the option. This option
is meant for advanced users who are sure of what they expect,
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index c51074c89ff..7ac544c3bbf 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -8751,7 +8751,7 @@ gdb_print_insn_arm (bfd_vma memaddr, disassemble_info *info)
There are other ways of forcing a breakpoint. GNU/Linux, RISC iX,
and NetBSD all use a software interrupt rather than an undefined
- instruction to force a trap. This can be handled by by the
+ instruction to force a trap. This can be handled by the
abi-specific code during establishment of the gdbarch vector. */
#define ARM_LE_BREAKPOINT {0xFE,0xDE,0xFF,0xE7}
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index 012022f2b73..95726d3eb0f 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -535,7 +535,7 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end,
/* FIXME: TRoth/2003-06-11: This could be made more efficient by only
reading in the bytes of the prologue. The problem is that the figuring
- out where the end of the prologue is is a bit difficult. The old code
+ out where the end of the prologue is a bit difficult. The old code
tried to do that, but failed quite often. */
read_memory (pc_beg, prologue, len);
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ca65d7e135d..b2a432e26ba 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -7373,7 +7373,7 @@ watchpoint_locations_match (const struct bp_location *loc1,
gdb_assert (w2 != NULL);
/* If the target can evaluate the condition expression in hardware,
- then we we need to insert both watchpoints even if they are at
+ then we need to insert both watchpoints even if they are at
the same place. Otherwise the watchpoint will only trigger when
the condition of whichever watchpoint was inserted evaluates to
true, not giving a chance for GDB to check the condition of the
@@ -9139,7 +9139,7 @@ decode_static_tracepoint_spec (const char **arg_p)
return sals;
}
-/* Returns the breakpoint ops appropriate for use with with LOCATION_TYPE and
+/* Returns the breakpoint ops appropriate for use with LOCATION_TYPE and
according to IS_TRACEPOINT. */
static const struct breakpoint_ops *
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 722d75390fa..75de448b16e 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1604,7 +1604,7 @@ extern void
extern breakpoint *install_breakpoint
(int internal, std::unique_ptr<breakpoint> &&b, int update_gll);
-/* Returns the breakpoint ops appropriate for use with with LOCSPEC
+/* Returns the breakpoint ops appropriate for use with LOCSPEC
and according to IS_TRACEPOINT. Use this to ensure, for example,
that you pass the correct ops to create_breakpoint for probe
location specs. If LOCSPEC is NULL, returns
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 07f01c92b15..00805e029f8 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -336,7 +336,7 @@ cp_type_print_method_args (struct type *mtype,
any typename for TYPE and show its details.
SHOW is always zero on recursive calls.
- NEED_POST_SPACE is non-zero when a space will be be needed
+ NEED_POST_SPACE is non-zero when a space will be needed
between a trailing qualifier and a field, variable, or function
name. */
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 6cafab78d58..1a38360ca1a 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -394,7 +394,7 @@ Takes @var{value}, an instance of @code{gdb.Value} (@pxref{Values From
Inferior}), and appends the value this object represents to
@value{GDBN}'s value history (@pxref{Value History}), and return an
integer, its history number. If @var{value} is not a
-@code{gdb.Value}, it is is converted using the @code{gdb.Value}
+@code{gdb.Value}, it is converted using the @code{gdb.Value}
constructor. If @var{value} can't be converted to a @code{gdb.Value}
then a @code{TypeError} is raised.
@@ -422,7 +422,7 @@ named @var{name}. @var{name} must be a string. The name should not
include the @samp{$} that is used to mark a convenience variable in an
expression. If @var{value} is @code{None}, then the convenience
variable is removed. Otherwise, if @var{value} is not a
-@code{gdb.Value} (@pxref{Values From Inferior}), it is is converted
+@code{gdb.Value} (@pxref{Values From Inferior}), it is converted
using the @code{gdb.Value} constructor.
@end defun
diff --git a/gdb/dwarf2/unit-head.c b/gdb/dwarf2/unit-head.c
index 9d8818e6917..1771e43da97 100644
--- a/gdb/dwarf2/unit-head.c
+++ b/gdb/dwarf2/unit-head.c
@@ -142,7 +142,7 @@ read_unit_head (struct unit_head *header, const gdb_byte *info_ptr,
return info_ptr;
}
-/* Subroutine of read_and_check_unit_head to to simplify it.
+/* Subroutine of read_and_check_unit_head to simplify it.
Perform various error checking on the header. */
static void
diff --git a/gdb/frame.h b/gdb/frame.h
index 33a08b1403b..b64650f3215 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -259,7 +259,7 @@ class frame_info_ptr : public intrusive_list_node<frame_info_ptr>
~frame_info_ptr ()
{
- /* If this node has static storage, it should be be deleted before
+ /* If this node has static storage, it should be deleted before
frame_list. */
frame_list.erase (frame_list.iterator_to (*this));
}
diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c
index 956990824cf..c9a55f0ad43 100644
--- a/gdb/frv-linux-tdep.c
+++ b/gdb/frv-linux-tdep.c
@@ -275,7 +275,7 @@ frv_linux_sigtramp_frame_cache (const frame_info_ptr &this_frame,
cache = trad_frame_cache_zalloc (this_frame);
- /* FIXME: cagney/2004-05-01: This is is long standing broken code.
+ /* FIXME: cagney/2004-05-01: This is long standing broken code.
The frame ID's code address should be the start-address of the
signal trampoline and not the current PC within that
trampoline. */
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 5e540f9d09a..51e9ae1b3f0 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -355,7 +355,7 @@ class thread_info : public intrusive_list_node<thread_info>,
per-inferior thread number. This number is unique in the
inferior but not unique between inferiors.
- b) The global ID (GId). This is a a single integer unique
+ b) The global ID (GId). This is a single integer unique
between all inferiors.
E.g.:
diff --git a/gdb/infrun.c b/gdb/infrun.c
index c0767e7f764..bc88e40b8d5 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1718,7 +1718,7 @@ infrun_inferior_execd (inferior *exec_inf, inferior *follow_inf)
{
/* If some threads where was doing a displaced step in this inferior at the
moment of the exec, they no longer exist. Even if the exec'ing thread
- doing a displaced step, we don't want to to any fixup nor restore displaced
+ doing a displaced step, we don't want to do any fixup nor restore displaced
stepping buffer bytes. */
follow_inf->displaced_step_state.reset ();
diff --git a/gdb/m68k-linux-tdep.c b/gdb/m68k-linux-tdep.c
index ceb15cb1a20..81e957dc681 100644
--- a/gdb/m68k-linux-tdep.c
+++ b/gdb/m68k-linux-tdep.c
@@ -265,7 +265,7 @@ m68k_linux_sigtramp_frame_cache (const frame_info_ptr &this_frame,
cache = trad_frame_cache_zalloc (this_frame);
- /* FIXME: cagney/2004-05-01: This is is long standing broken code.
+ /* FIXME: cagney/2004-05-01: This is long standing broken code.
The frame ID's code address should be the start-address of the
signal trampoline and not the current PC within that
trampoline. */
diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c
index 1351dbe2d0c..1935bedc82c 100644
--- a/gdb/or1k-tdep.c
+++ b/gdb/or1k-tdep.c
@@ -198,7 +198,7 @@ or1k_analyse_l_addi (uint32_t inst, unsigned int *rd_ptr,
return false; /* Failure */
}
-/* This is used to to parse store instructions during various prologue
+/* This is used to parse store instructions during various prologue
analysis routines. The l.sw instruction has semantics:
assembly: l.sw I(rA),rB
diff --git a/gdb/python/lib/gdb/dap/varref.py b/gdb/python/lib/gdb/dap/varref.py
index 3cd1ce74fbf..e2dcd03910c 100644
--- a/gdb/python/lib/gdb/dap/varref.py
+++ b/gdb/python/lib/gdb/dap/varref.py
@@ -119,7 +119,7 @@ class BaseReference(ABC):
# Helper method to compute the final name for a child whose base
# name is given. Updates the name_counts map. This is used to
# handle shadowing -- in DAP, the adapter is responsible for
- # making sure that all the variables in a a given container have
+ # making sure that all the variables in a given container have
# unique names. See
# https://github.com/microsoft/debug-adapter-protocol/issues/141
# and
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index 5529e9fd4d7..57288b9ead3 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -1201,7 +1201,7 @@ class gdbpy_registry
}
/* Unregister Python object OBJ. OBJ will no longer be invalidated when
- OWNER is about to be be freed. */
+ OWNER is about to be freed. */
template <typename O>
void remove (O *owner, obj_type *obj) const
{
diff --git a/gdb/remote.c b/gdb/remote.c
index 30d0d171d1f..76cf6b5234f 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6748,7 +6748,7 @@ thread_pending_fork_status (struct thread_info *thread)
return &ws;
}
-/* Return THREAD's pending status if is is a pending fork/vfork/clone
+/* Return THREAD's pending status if is a pending fork/vfork/clone
event, else return nullptr. */
static const target_waitstatus *
@@ -10822,7 +10822,7 @@ show_watchdog (struct ui_file *file, int from_tty,
/* Read a packet from the remote machine, with error checking, and
store it in *BUF. Resize *BUF if necessary to hold the result. If
FOREVER, wait forever rather than timing out; this is used (in
- synchronous mode) to wait for a target that is is executing user
+ synchronous mode) to wait for a target that is executing user
code to stop. If FOREVER == false, this function is allowed to time
out gracefully and return an indication of this to the caller.
Otherwise return the number of bytes read. If IS_NOTIF is not
diff --git a/gdb/remote.h b/gdb/remote.h
index 5597dd74af8..4e61c9c88e3 100644
--- a/gdb/remote.h
+++ b/gdb/remote.h
@@ -50,7 +50,7 @@ extern bool remote_debug;
store it in *BUF. Resize *BUF using xrealloc if necessary to hold
the result, and update *SIZEOF_BUF. If FOREVER, wait forever
rather than timing out; this is used (in synchronous mode) to wait
- for a target that is is executing user code to stop. */
+ for a target that is executing user code to stop. */
extern void getpkt (remote_target *remote,
char **buf, long *sizeof_buf, int forever);
diff --git a/gdb/svr4-tls-tdep.c b/gdb/svr4-tls-tdep.c
index b39623b324c..0fd09f46e93 100644
--- a/gdb/svr4-tls-tdep.c
+++ b/gdb/svr4-tls-tdep.c
@@ -117,7 +117,7 @@ svr4_tls_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid,
target stack, except when 'force_internal_tls_address_lookup'
has been set.
- The idea here is to prefer use of of the target's thread_stratum
+ The idea here is to prefer use of the target's thread_stratum
method since it should be more accurate. */
if (gdbarch_data->get_tls_dtv_addr == nullptr
|| (current_inferior ()->target_at (thread_stratum) != nullptr
diff --git a/gdb/testsuite/gdb.base/call-sc.exp b/gdb/testsuite/gdb.base/call-sc.exp
index 9f9019058ef..825c91c1937 100644
--- a/gdb/testsuite/gdb.base/call-sc.exp
+++ b/gdb/testsuite/gdb.base/call-sc.exp
@@ -230,7 +230,7 @@ proc test_scalar_returns { } {
# If the previous test did not work, the program counter might
# still be inside foo() rather than main(). Make sure the program
- # counter is is main().
+ # counter is main().
#
# This happens on ppc64 GNU/Linux with gcc 3.4.1 and a buggy GDB
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 741e7e441bf..cf6edce23c0 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -438,7 +438,7 @@ proc test_watchpoint_triggered_in_syscall {} {
}
}
-# Do a simple test of of watching through a pointer when the pointer
+# Do a simple test of watching through a pointer when the pointer
# itself changes. Should add some more complicated stuff here.
proc test_complex_watchpoint {} {
diff --git a/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp b/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
index de76cc8aca2..2b59c01474b 100644
--- a/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
@@ -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 that the DWARF reader works with a a DW_AT_specification that
+# Check that the DWARF reader works with a DW_AT_specification that
# refers to an earlier DIE. Inter-cu variant of forward-spec.exp.
load_lib dwarf.exp
diff --git a/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp b/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
index eb1d8a2df58..a2c5f7b921e 100644
--- a/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
@@ -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 that the DWARF reader works with a a DW_AT_specification that
+# Check that the DWARF reader works with a DW_AT_specification that
# refers to a later DIE. Inter-cu variant of forward-spec.exp.
load_lib dwarf.exp
diff --git a/gdb/testsuite/gdb.dwarf2/forward-spec.exp b/gdb/testsuite/gdb.dwarf2/forward-spec.exp
index fd7d008adb3..80156dbd9a1 100644
--- a/gdb/testsuite/gdb.dwarf2/forward-spec.exp
+++ b/gdb/testsuite/gdb.dwarf2/forward-spec.exp
@@ -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 that the DWARF reader works with a a DW_AT_specification that
+# Check that the DWARF reader works with a DW_AT_specification that
# refers to a later DIE.
require !readnow
diff --git a/gdb/varobj.c b/gdb/varobj.c
index b1429bfe69a..edc0d48bf3b 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2263,7 +2263,7 @@ varobj_value_is_changeable_p (const struct varobj *var)
return var->root->lang_ops->value_is_changeable_p (var);
}
-/* Return true if that varobj is floating, that is is always evaluated in the
+/* Return true if that varobj is floating, that is always evaluated in the
selected frame, and not bound to thread/frame. Such variable objects
are created using '@' as frame specifier to -var-create. */
bool
diff --git a/gdbserver/server.cc b/gdbserver/server.cc
index 4a727c465f0..a208e24d09f 100644
--- a/gdbserver/server.cc
+++ b/gdbserver/server.cc
@@ -1318,7 +1318,7 @@ handle_detach (char *own_buf)
"Persistent commands are present, "
"leaving gdbserver attached to the process\n");
- /* Make sure we're in non-stop/async mode, so we we can both
+ /* Make sure we're in non-stop/async mode, so we can both
wait for an async socket accept, and handle async target
events simultaneously. There's also no point either in
having the target stop all threads, when we're going to
@@ -4676,7 +4676,7 @@ captured_main (int argc, char *argv[])
{
if (disconnected_tracing)
{
- /* Try to enable non-stop/async mode, so we we can
+ /* Try to enable non-stop/async mode, so we can
both wait for an async socket accept, and handle
async target events simultaneously. There's also
no point either in having the target always stop
--
2.51.0
next prev parent reply other threads:[~2026-09-03 5:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 5:47 [pushed 1/3] [gdb] Fix some typos Tom de Vries
2026-09-03 5:47 ` Tom de Vries [this message]
2026-09-03 5:47 ` [pushed 3/3] [gdb] Fix dont -> don't typo 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=20260903054722.1461007-2-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