@@ -371,7 +371,7 @@ canonicalizeNumeral (char *s1, const char *s2)
/* Interprets the prefix of NUM that consists of digits of the given BASE
as an integer of that BASE, with the string EXP as an exponent.
Puts value in yylval, and returns INT, if the string is valid. Causes
- an error if the number is improperly formated. BASE, if NULL, defaults
+ an error if the number is improperly formatted. BASE, if NULL, defaults
to "10", and EXP to "1". The EXP does not contain a leading 'e' or 'E'.
*/
@@ -1515,7 +1515,7 @@ amd_dbgapi_target::store_registers (struct regcache *regcache, int regno)
amdgpu_gdbarch_tdep *tdep = get_amdgpu_gdbarch_tdep (gdbarch);
/* If the register has read-only bits, invalidate the value in the regcache
- as the value actualy written may differ. */
+ as the value actually written may differ. */
if (tdep->register_properties[regno]
& AMD_DBGAPI_REGISTER_PROPERTY_READONLY_BITS)
regcache->invalidate (regno);
@@ -31,7 +31,7 @@ void arc_linux_supply_gregset (const struct regset *regset,
struct regcache *regcache, int regnum,
const void *gregs, size_t size);
-/* Reads regsiters from the NT_ARC_V2 data array into the regcache. */
+/* Reads registers from the NT_ARC_V2 data array into the regcache. */
void arc_linux_supply_v2_regset (const struct regset *regset,
struct regcache *regcache, int regnum,
@@ -3971,7 +3971,7 @@ struct frame_base arm_normal_base = {
struct arm_dwarf2_prev_register_cache
{
- /* Cached value of the coresponding stack pointer for the inner frame. */
+ /* Cached value of the corresponding stack pointer for the inner frame. */
CORE_ADDR sp;
CORE_ADDR msp;
CORE_ADDR msp_s;
@@ -2459,7 +2459,7 @@ build_target_condition_list (struct bp_location *bl)
/* No NULL conditions or failed bytecode generation. Build a
condition list for this location's address. If we have software
and hardware locations at the same address, they aren't
- considered duplicates, but we still marge all the conditions
+ considered duplicates, but we still merge all the conditions
anyway, as it's simpler, and doesn't really make a practical
difference. */
for (bp_location *loc : loc_range)
@@ -1779,7 +1779,7 @@ help_cmd (const char *command, struct ui_file *stream)
if (alias == nullptr || !user_documented_alias (*alias))
{
- /* Case of a normal command, or an alias not explictly
+ /* Case of a normal command, or an alias not explicitly
documented by the user. */
/* If the user asked 'help somecommand' and there is no alias,
the false indicates to not output the (single) command name. */
@@ -1789,7 +1789,7 @@ help_cmd (const char *command, struct ui_file *stream)
}
else
{
- /* Case of an alias explictly documented by the user.
+ /* Case of an alias explicitly documented by the user.
Only output the alias definition and its explicit documentation. */
fput_alias_definition_styled (*alias, stream);
fput_command_names_styled (*alias, false, "\n", stream);
@@ -2103,7 +2103,7 @@ quote (const char *str)
/* Check that removing parameter info out of NAME produces EXPECTED.
COMPLETION_MODE indicates whether we're testing normal and
completion mode. FILE and LINE are used to provide better test
- location information in case ithe check fails. */
+ location information in case the check fails. */
static void
check_remove_params (const char *file, int line,
@@ -2581,7 +2581,7 @@ csky_pseudo_register_read (struct gdbarch *gdbarch,
int offset = 0;
gdb_byte reg_buf[16];
- /* Ensure getting s0~s63 from vrx if tdep->has_vr0 is ture. */
+ /* Ensure getting s0~s63 from vrx if tdep->has_vr0 is true. */
if (tdep->has_vr0)
{
if (regnum < 64)
@@ -248,7 +248,7 @@ struct gdb_non_printing_memory_disassembler
{ /* Nothing. */ }
};
-/* A dissassembler class that provides 'print_insn', a method for
+/* A disassembler class that provides 'print_insn', a method for
disassembling a single instruction to the output stream. */
struct gdb_disassembler : public gdb_printing_disassembler,
@@ -14779,7 +14779,7 @@ read_typedef (struct die_info *die, struct dwarf2_cu *cu)
/* The long double is defined as a base type in C. GCC creates a long
double typedef with target-type _Float128 for the long double to
identify it as the IEEE Float128 value. This is a GCC hack since the
- DWARF doesn't distinquish between the IBM long double and IEEE
+ DWARF doesn't distinguish between the IBM long double and IEEE
128-bit float. Replace the GCC workaround for the long double
typedef with the actual type information copied from the target-type
with the correct long double base type name. */
@@ -2116,7 +2116,7 @@ reinit_frame_cache (void)
if (sentinel_frame != nullptr)
{
/* If frame 0's id is not computed, it is not in the frame stash, so its
- dealloc functions will not be called when emptying the frash stash.
+ dealloc functions will not be called when emptying the frame stash.
Call frame_info_del manually in that case. */
frame_info *current_frame = sentinel_frame->prev;
if (current_frame != nullptr
@@ -902,7 +902,7 @@ May return 0 when unable to determine that address.""",
)
-# The DWARF info currently does not distinquish between IEEE 128-bit floating
+# The DWARF info currently does not distinguish between IEEE 128-bit floating
# point values and the IBM 128-bit floating point format. GCC has an internal
# hack to identify the IEEE 128-bit floating point value. The long double is a
# defined base type in C. The GCC hack uses a typedef for long double to
@@ -386,7 +386,7 @@ i386_canonicalize_syscall (int syscall)
/* Value of the sigcode in case of a boundary fault. */
-#define SIG_CODE_BONDARY_FAULT 3
+#define SIG_CODE_BOUNDARY_FAULT 3
/* i386 GNU/Linux implementation of the report_signal_info
gdbarch hook. Displays information related to MPX bound
@@ -421,7 +421,7 @@ i386_linux_report_signal_info (struct gdbarch *gdbarch, struct ui_out *uiout,
}
/* If this is not a boundary violation just return. */
- if (sig_code != SIG_CODE_BONDARY_FAULT)
+ if (sig_code != SIG_CODE_BOUNDARY_FAULT)
return;
is_upper = (access > upper_bound ? 1 : 0);
@@ -7500,7 +7500,7 @@ process_event_stop_test (struct execution_control_state *ecs)
{
/* We are executing the reverse-finish command.
If the system supports multiple entry points and we are finishing a
- function in reverse. If we are between the entry points singe-step
+ function in reverse. If we are between the entry points single-step
back to the alternate entry point. If we are at the alternate entry
point -- just need to back up by one more single-step, which
should take us back to the function call. */
@@ -3968,7 +3968,7 @@ linux_proc_xfer_memory_partial (int pid, gdb_byte *readbuf,
return true if so. It wasn't writable before Linux 2.6.39, but
there's no way to know whether the feature was backported to older
kernels. So we check to see if it works. The result is cached,
- and this is garanteed to be called once early during inferior
+ and this is guaranteed to be called once early during inferior
startup, so that any warning is printed out consistently between
GDB invocations. Note we don't call it during GDB startup instead
though, because then we might warn with e.g. just "gdb --version"
@@ -653,7 +653,7 @@ loongarch_push_dummy_call (struct gdbarch *gdbarch,
all future arguments will also be passed on the stack,
i.e., the last argument register may be left unused
due to the aligned register pair rule.
- long double data tpye is passed in an aligned GAR pair,
+ long double data type is passed in an aligned GAR pair,
the first register in the pair is even-numbered. */
if (gar >= 2)
{
@@ -324,7 +324,7 @@ get_core_array_size ()
/* Using /sys/.../possible is preferred, because it handles the case where
we are in a container that has access to a subset of the host's cores.
It will return a size that considers all the CPU cores available to the
- host. If that fials for some reason, fall back to sysconf. */
+ host. If that fails for some reason, fall back to sysconf. */
gdb::optional<size_t> count = get_core_array_size_using_sys_possible ();
if (count.has_value ())
return *count;
@@ -333,7 +333,7 @@ class ppc_linux_dreg_interface
/* One and only one of these three functions returns true, indicating
whether the corresponding interface is the one we detected. The
- interface must already have been detected as a precontidion. */
+ interface must already have been detected as a precondition. */
bool hwdebug_p ()
{
@@ -2126,7 +2126,7 @@ ppc_linux_nat_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
/* DAWR interface allows to watch up to 512 byte wide ranges. */
region_size = 512;
/* DAWR interface allows to watch up to 512 byte wide ranges which
- can't cross a 512 byte bondary on machines that doesn't have a
+ can't cross a 512 byte boundary on machines that doesn't have a
second DAWR (P9 or less). */
if (!(hwdebug_info.features & PPC_DEBUG_FEATURE_DATA_BP_ARCH_31))
region_align = 512;
@@ -2733,7 +2733,7 @@ ppc_linux_nat_target::low_forget_process (pid_t pid)
}
/* Copy the per-process state associated with the pid of PARENT to the
- sate of CHILD_PID. GDB expects that a forked process will have the
+ state of CHILD_PID. GDB expects that a forked process will have the
same hardware breakpoints and watchpoints as the parent.
If we're using the HWDEBUG interface, also copy the thread debug
@@ -1175,7 +1175,7 @@ struct scoped_disasm_info_object
memaddr, info, nullptr);
}
- /* Upon destruction mark m_diasm_info as invalid. */
+ /* Upon destruction mark m_disasm_info as invalid. */
~scoped_disasm_info_object ()
{
/* Invalidate the original DisassembleInfo object as well as any copies
@@ -376,7 +376,7 @@ get_thread_arch_aspace_regcache (inferior *inf_for_target_calls,
regcache *new_regcache = new regcache (inf_for_target_calls, arch, aspace);
new_regcache->set_ptid (ptid);
/* Work around a problem with g++ 4.8 (PR96537): Call the regcache_up
- constructor explictly instead of implicitly. */
+ constructor explicitly instead of implicitly. */
ptid_regc_map.insert (std::make_pair (ptid, regcache_up (new_regcache)));
return new_regcache;
@@ -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/>.
-# This test case is to test the speed of GDB when it is doing singe step.
+# This test case is to test the speed of GDB when it is doing single step.
# There is one parameter in this test:
# - SINGLE_STEP_COUNT is the number of single step GDB performs.
@@ -174,7 +174,7 @@ verbose "using GDB = $GDB" 2
# The data directory the testing GDB will use. By default, assume
# we're testing a non-installed GDB in the build directory. Users may
-# also explictly override the -data-directory from the command line.
+# also explicitly override the -data-directory from the command line.
if ![info exists GDB_DATA_DIRECTORY] {
set GDB_DATA_DIRECTORY [file normalize "[pwd]/../data-directory"]
}
@@ -1191,7 +1191,7 @@ tui_getc_1 (FILE *fp)
#endif
}
- /* Keycodes above KEY_MAX are not garanteed to be stable.
+ /* Keycodes above KEY_MAX are not guaranteed to be stable.
Compare keyname instead. */
if (ch >= KEY_MAX)
{
@@ -316,7 +316,7 @@ struct tui_source_window_iterator
struct tui_source_windows
{
- /* Work around Wmaybe-uninitalized warning with g++ 11.0.0, see also
+ /* Work around Wmaybe-uninitialized warning with g++ 11.0.0, see also
PR gcc/96295. Note that "tui_source_windows () = default" doesn't work
around the warning. */
tui_source_windows () {}
@@ -2414,7 +2414,7 @@ varobj_invalidate_if_uses_objfile (struct objfile *objfile)
/* var->value->type and var->type might also reference the objfile.
This is taken care of in value.c:preserve_values which deals with
- making sure that objfile-owend types are replaced with
+ making sure that objfile-owned types are replaced with
gdbarch-owned equivalents. */
});
}
@@ -1403,7 +1403,7 @@ z80_get_insn_info (struct gdbarch *gdbarch, const gdb_byte *buf, int *size)
info = &ez80_adl_main_insn_table[4]; /* skip force_nops */
break;
default:
- info = &ez80_main_insn_table[8]; /* skip eZ80 prefices and force_nops */
+ info = &ez80_main_insn_table[8]; /* skip eZ80 prefixes and force_nops */
break;
}
do
@@ -3540,7 +3540,7 @@ linux_process_target::wait_1 (ptid_t ptid, target_waitstatus *ourstatus,
else
{
/* The LWP stopped due to a plain signal or a syscall signal. Either way,
- event_chid->waitstatus wasn't filled in with the details, so look at
+ event_child->waitstatus wasn't filled in with the details, so look at
the wait status W. */
if (WSTOPSIG (w) == SYSCALL_SIGTRAP)
{
@@ -279,7 +279,7 @@ operator!= (const gdb::array_view<T> &lhs, const gdb::array_view<T> &rhs)
foo (1, 2, gdb::array_view<value *>(values, nargs));
Or, better, using make_array_view, which has the advantage of
- inferring the arrav_view element's type:
+ inferring the array_view element's type:
foo (1, 2, gdb::make_array_view (values, nargs));
*/