[gdb] Fix more typos

Fix some more typos:
- distinquish -> distinguish
- actualy -> actually
- singe -> single
- frash -> frame
- chid -> child
- dissassembler -> disassembler
- uninitalized -> uninitialized
- precontidion -> precondition
- regsiters -> registers
- marge -> merge
- sate -> state
- garanteed -> guaranteed
- explictly -> explicitly
- prefices (nonstandard plural) -> prefixes
- bondary -> boundary
- formated -> formatted
- ithe -> the
- arrav -> array
- coresponding -> corresponding
- owend -> owned
- fials -> fails
- diasm -> disasm
- ture -> true
- tpye -> type

There's one code change, the name of macro SIG_CODE_BONDARY_FAULT changed to
SIG_CODE_BOUNDARY_FAULT.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2023-06-05 12:53:15 +02:00
parent fc998e4cb7
commit 3bfdcabbc2
28 changed files with 32 additions and 32 deletions

View File

@@ -371,7 +371,7 @@ canonicalizeNumeral (char *s1, const char *s2)
/* Interprets the prefix of NUM that consists of digits of the given BASE /* 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. 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 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'. to "10", and EXP to "1". The EXP does not contain a leading 'e' or 'E'.
*/ */

View File

@@ -1515,7 +1515,7 @@ amd_dbgapi_target::store_registers (struct regcache *regcache, int regno)
amdgpu_gdbarch_tdep *tdep = get_amdgpu_gdbarch_tdep (gdbarch); amdgpu_gdbarch_tdep *tdep = get_amdgpu_gdbarch_tdep (gdbarch);
/* If the register has read-only bits, invalidate the value in the regcache /* 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] if (tdep->register_properties[regno]
& AMD_DBGAPI_REGISTER_PROPERTY_READONLY_BITS) & AMD_DBGAPI_REGISTER_PROPERTY_READONLY_BITS)
regcache->invalidate (regno); regcache->invalidate (regno);

View File

@@ -31,7 +31,7 @@ void arc_linux_supply_gregset (const struct regset *regset,
struct regcache *regcache, int regnum, struct regcache *regcache, int regnum,
const void *gregs, size_t size); 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, void arc_linux_supply_v2_regset (const struct regset *regset,
struct regcache *regcache, int regnum, struct regcache *regcache, int regnum,

View File

@@ -3971,7 +3971,7 @@ struct frame_base arm_normal_base = {
struct arm_dwarf2_prev_register_cache 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 sp;
CORE_ADDR msp; CORE_ADDR msp;
CORE_ADDR msp_s; CORE_ADDR msp_s;

View File

@@ -2459,7 +2459,7 @@ build_target_condition_list (struct bp_location *bl)
/* No NULL conditions or failed bytecode generation. Build a /* No NULL conditions or failed bytecode generation. Build a
condition list for this location's address. If we have software condition list for this location's address. If we have software
and hardware locations at the same address, they aren't 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 anyway, as it's simpler, and doesn't really make a practical
difference. */ difference. */
for (bp_location *loc : loc_range) for (bp_location *loc : loc_range)

View File

@@ -1779,7 +1779,7 @@ help_cmd (const char *command, struct ui_file *stream)
if (alias == nullptr || !user_documented_alias (*alias)) 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. */ documented by the user. */
/* If the user asked 'help somecommand' and there is no alias, /* If the user asked 'help somecommand' and there is no alias,
the false indicates to not output the (single) command name. */ the false indicates to not output the (single) command name. */
@@ -1789,7 +1789,7 @@ help_cmd (const char *command, struct ui_file *stream)
} }
else 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. */ Only output the alias definition and its explicit documentation. */
fput_alias_definition_styled (*alias, stream); fput_alias_definition_styled (*alias, stream);
fput_command_names_styled (*alias, false, "\n", stream); fput_command_names_styled (*alias, false, "\n", stream);

View File

@@ -2103,7 +2103,7 @@ quote (const char *str)
/* Check that removing parameter info out of NAME produces EXPECTED. /* Check that removing parameter info out of NAME produces EXPECTED.
COMPLETION_MODE indicates whether we're testing normal and COMPLETION_MODE indicates whether we're testing normal and
completion mode. FILE and LINE are used to provide better test 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 static void
check_remove_params (const char *file, int line, check_remove_params (const char *file, int line,

View File

@@ -2581,7 +2581,7 @@ csky_pseudo_register_read (struct gdbarch *gdbarch,
int offset = 0; int offset = 0;
gdb_byte reg_buf[16]; 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 (tdep->has_vr0)
{ {
if (regnum < 64) if (regnum < 64)

View File

@@ -248,7 +248,7 @@ struct gdb_non_printing_memory_disassembler
{ /* Nothing. */ } { /* 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. */ disassembling a single instruction to the output stream. */
struct gdb_disassembler : public gdb_printing_disassembler, struct gdb_disassembler : public gdb_printing_disassembler,

View File

@@ -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 /* 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 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 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 128-bit float. Replace the GCC workaround for the long double
typedef with the actual type information copied from the target-type typedef with the actual type information copied from the target-type
with the correct long double base type name. */ with the correct long double base type name. */

View File

@@ -2116,7 +2116,7 @@ reinit_frame_cache (void)
if (sentinel_frame != nullptr) if (sentinel_frame != nullptr)
{ {
/* If frame 0's id is not computed, it is not in the frame stash, so its /* 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. */ Call frame_info_del manually in that case. */
frame_info *current_frame = sentinel_frame->prev; frame_info *current_frame = sentinel_frame->prev;
if (current_frame != nullptr if (current_frame != nullptr

View File

@@ -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 # 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 # 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 # defined base type in C. The GCC hack uses a typedef for long double to

View File

@@ -386,7 +386,7 @@ i386_canonicalize_syscall (int syscall)
/* Value of the sigcode in case of a boundary fault. */ /* 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 /* i386 GNU/Linux implementation of the report_signal_info
gdbarch hook. Displays information related to MPX bound 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 this is not a boundary violation just return. */
if (sig_code != SIG_CODE_BONDARY_FAULT) if (sig_code != SIG_CODE_BOUNDARY_FAULT)
return; return;
is_upper = (access > upper_bound ? 1 : 0); is_upper = (access > upper_bound ? 1 : 0);

View File

@@ -7500,7 +7500,7 @@ process_event_stop_test (struct execution_control_state *ecs)
{ {
/* We are executing the reverse-finish command. /* We are executing the reverse-finish command.
If the system supports multiple entry points and we are finishing a 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 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 point -- just need to back up by one more single-step, which
should take us back to the function call. */ should take us back to the function call. */

View File

@@ -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 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 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, 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 startup, so that any warning is printed out consistently between
GDB invocations. Note we don't call it during GDB startup instead GDB invocations. Note we don't call it during GDB startup instead
though, because then we might warn with e.g. just "gdb --version" though, because then we might warn with e.g. just "gdb --version"

View File

@@ -653,7 +653,7 @@ loongarch_push_dummy_call (struct gdbarch *gdbarch,
all future arguments will also be passed on the stack, all future arguments will also be passed on the stack,
i.e., the last argument register may be left unused i.e., the last argument register may be left unused
due to the aligned register pair rule. 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. */ the first register in the pair is even-numbered. */
if (gar >= 2) if (gar >= 2)
{ {

View File

@@ -324,7 +324,7 @@ get_core_array_size ()
/* Using /sys/.../possible is preferred, because it handles the case where /* 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. 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 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 (); gdb::optional<size_t> count = get_core_array_size_using_sys_possible ();
if (count.has_value ()) if (count.has_value ())
return *count; return *count;

View File

@@ -333,7 +333,7 @@ public:
/* One and only one of these three functions returns true, indicating /* One and only one of these three functions returns true, indicating
whether the corresponding interface is the one we detected. The 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 () 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. */ /* DAWR interface allows to watch up to 512 byte wide ranges. */
region_size = 512; region_size = 512;
/* DAWR interface allows to watch up to 512 byte wide ranges which /* 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). */ second DAWR (P9 or less). */
if (!(hwdebug_info.features & PPC_DEBUG_FEATURE_DATA_BP_ARCH_31)) if (!(hwdebug_info.features & PPC_DEBUG_FEATURE_DATA_BP_ARCH_31))
region_align = 512; 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 /* 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. same hardware breakpoints and watchpoints as the parent.
If we're using the HWDEBUG interface, also copy the thread debug If we're using the HWDEBUG interface, also copy the thread debug

View File

@@ -1175,7 +1175,7 @@ struct scoped_disasm_info_object
memaddr, info, nullptr); memaddr, info, nullptr);
} }
/* Upon destruction mark m_diasm_info as invalid. */ /* Upon destruction mark m_disasm_info as invalid. */
~scoped_disasm_info_object () ~scoped_disasm_info_object ()
{ {
/* Invalidate the original DisassembleInfo object as well as any copies /* Invalidate the original DisassembleInfo object as well as any copies

View File

@@ -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); regcache *new_regcache = new regcache (inf_for_target_calls, arch, aspace);
new_regcache->set_ptid (ptid); new_regcache->set_ptid (ptid);
/* Work around a problem with g++ 4.8 (PR96537): Call the regcache_up /* 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))); ptid_regc_map.insert (std::make_pair (ptid, regcache_up (new_regcache)));
return new_regcache; return new_regcache;

View File

@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # 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: # There is one parameter in this test:
# - SINGLE_STEP_COUNT is the number of single step GDB performs. # - SINGLE_STEP_COUNT is the number of single step GDB performs.

View File

@@ -174,7 +174,7 @@ verbose "using GDB = $GDB" 2
# The data directory the testing GDB will use. By default, assume # The data directory the testing GDB will use. By default, assume
# we're testing a non-installed GDB in the build directory. Users may # 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] { if ![info exists GDB_DATA_DIRECTORY] {
set GDB_DATA_DIRECTORY [file normalize "[pwd]/../data-directory"] set GDB_DATA_DIRECTORY [file normalize "[pwd]/../data-directory"]
} }

View File

@@ -1191,7 +1191,7 @@ tui_getc_1 (FILE *fp)
#endif #endif
} }
/* Keycodes above KEY_MAX are not garanteed to be stable. /* Keycodes above KEY_MAX are not guaranteed to be stable.
Compare keyname instead. */ Compare keyname instead. */
if (ch >= KEY_MAX) if (ch >= KEY_MAX)
{ {

View File

@@ -316,7 +316,7 @@ private:
struct tui_source_windows 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 PR gcc/96295. Note that "tui_source_windows () = default" doesn't work
around the warning. */ around the warning. */
tui_source_windows () {} tui_source_windows () {}

View File

@@ -2414,7 +2414,7 @@ varobj_invalidate_if_uses_objfile (struct objfile *objfile)
/* var->value->type and var->type might also reference the 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 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. */ gdbarch-owned equivalents. */
}); });
} }

View File

@@ -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 */ info = &ez80_adl_main_insn_table[4]; /* skip force_nops */
break; break;
default: 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; break;
} }
do do

View File

@@ -3540,7 +3540,7 @@ linux_process_target::wait_1 (ptid_t ptid, target_waitstatus *ourstatus,
else else
{ {
/* The LWP stopped due to a plain signal or a syscall signal. Either way, /* 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. */ the wait status W. */
if (WSTOPSIG (w) == SYSCALL_SIGTRAP) if (WSTOPSIG (w) == SYSCALL_SIGTRAP)
{ {

View File

@@ -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)); foo (1, 2, gdb::array_view<value *>(values, nargs));
Or, better, using make_array_view, which has the advantage of 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)); foo (1, 2, gdb::make_array_view (values, nargs));
*/ */