@@ -1324,7 +1324,7 @@ ada_decode (const char *encoded)
if (i < len0 + 3
&& encoded[i] == 'N' && encoded[i+1] == '_' && encoded[i+2] == '_')
{
- /* Backtrack a bit up until we reach either the begining of
+ /* Backtrack a bit up until we reach either the beginning of
the encoded name, or "__". Make sure that we only find
digits or lowercase characters. */
const char *ptr = encoded + i - 1;
@@ -5504,7 +5504,7 @@ aux_add_nonlocal_symbols (struct block *block, struct symbol *sym, void *data0)
return 0;
}
-/* Helper for add_nonlocal_symbols. Find symbols in DOMAIN which are targetted
+/* Helper for add_nonlocal_symbols. Find symbols in DOMAIN which are targeted
by renamings matching NAME in BLOCK. Add these symbols to OBSTACKP. If
WILD_MATCH_P is nonzero, perform the naming matching in "wild" mode (see
function "wild_match" for more information). Return whether we found such
@@ -5560,7 +5560,7 @@ ada_add_block_renamings (struct obstack *obstackp,
return num_defns_collected (obstackp) != defns_mark;
}
-/* Implements compare_names, but only applying the comparision using
+/* Implements compare_names, but only applying the comparison using
the given CASING. */
static int
@@ -6060,8 +6060,8 @@ is_name_suffix (const char *str)
/* ??? We should not modify STR directly, as we are doing below. This
is fine in this case, but may become problematic later if we find
that this alternative did not work, and want to try matching
- another one from the begining of STR. Since we modified it, we
- won't be able to find the begining of the string anymore! */
+ another one from the beginning of STR. Since we modified it, we
+ won't be able to find the beginning of the string anymore! */
if (str[0] == 'X')
{
str += 1;
@@ -6824,7 +6824,7 @@ ada_tag_value_at_base_address (struct value *obj)
obj_type = value_type (obj);
- /* It is the responsability of the caller to deref pointers. */
+ /* It is the responsibility of the caller to deref pointers. */
if (TYPE_CODE (obj_type) == TYPE_CODE_PTR
|| TYPE_CODE (obj_type) == TYPE_CODE_REF)
@@ -9111,7 +9111,7 @@ ada_to_fixed_type (struct type *type, const gdb_byte *valaddr,
brobecker/2010-11-19: It seems to me that the only case where it is
useful to preserve the typedef layer is when dealing with fat pointers.
Perhaps, we could add a check for that and preserve the typedef layer
- only in that situation. But this seems unecessary so far, probably
+ only in that situation. But this seems unnecessary so far, probably
because we call check_typedef/ada_check_typedef pretty much everywhere.
*/
if (TYPE_CODE (type) == TYPE_CODE_TYPEDEF
@@ -10584,7 +10584,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
&& value_type (arg1) != value_type (arg2))
error (_("Operands of fixed-point subtraction "
"must have the same type"));
- /* Do the substraction, and cast the result to the type of the first
+ /* Do the subtraction, and cast the result to the type of the first
argument. We cannot cast the result to a reference type, so if
ARG1 is a reference type, find its underlying type. */
type = value_type (arg1);
@@ -231,7 +231,7 @@ struct ada_tasks_inferior_data
reference it - this number is printed beside each task in the tasks
info listing displayed by "info tasks". This number is equal to
its index in the vector + 1. Reciprocally, to compute the index
- of a task in the vector, we need to substract 1 from its number. */
+ of a task in the vector, we need to subtract 1 from its number. */
VEC(ada_task_info_s) *task_list;
};
@@ -266,7 +266,7 @@ get_ada_tasks_pspace_data (struct program_space *pspace)
Note that we could use an observer of the inferior-created event
to make sure that the ada-tasks per-inferior data always exists.
- But we prefered this approach, as it avoids this entirely as long
+ But we preferred this approach, as it avoids this entirely as long
as the user does not use any of the tasking features. This is
quite possible, particularly in the case where the inferior does
not use tasking. */
@@ -42,11 +42,11 @@ alphafbsd_return_in_memory (struct type *type)
return 1;
/* We need to check if this struct/union is "integer" like. For
- this to be true, the offset of each adressable subfield must be
+ this to be true, the offset of each addressable subfield must be
zero. Note that bit fields are not addressable. */
for (i = 0; i < TYPE_NFIELDS (type); i++)
{
- /* If the field bitsize is non-zero, it isn't adressable. */
+ /* If the field bitsize is non-zero, it isn't addressable. */
if (TYPE_FIELD_BITPOS (type, i) != 0
&& TYPE_FIELD_BITSIZE (type, i) == 0)
return 1;
@@ -995,7 +995,7 @@ alpha_sigtramp_frame_sniffer (const struct frame_unwind *self,
const char *name;
/* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead
- look at tramp-frame.h and other simplier per-architecture
+ look at tramp-frame.h and other simpler per-architecture
sigtramp unwinders. */
/* We shouldn't even bother to try if the OSABI didn't register a
@@ -83,7 +83,7 @@ struct gdbarch_tdep
/* Does the PC fall in a signal trampoline. */
/* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead
- look at tramp-frame.h and other simplier per-architecture
+ look at tramp-frame.h and other simpler per-architecture
sigtramp unwinders. */
int (*pc_in_sigtramp) (struct gdbarch *gdbarch, CORE_ADDR pc,
const char *name);
@@ -97,7 +97,7 @@ struct gdbarch_tdep
int sc_fpregs_offset;
int jb_pc; /* Offset to PC value in jump buffer.
- If htis is negative, longjmp support
+ If this is negative, longjmp support
will be disabled. */
size_t jb_elt_size; /* And the size of each entry in the buf. */
};
@@ -71,7 +71,7 @@ static int amd64_linux_gregset32_reg_offset[] =
};
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register cache with the general-purpose register values
@@ -94,7 +94,7 @@ fill_gregset (const struct regcache *regcache,
amd64_collect_native_gregset (regcache, gregsetp, regnum);
}
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register cache with the floating-point and SSE register
values in *FPREGSETP. */
@@ -34,7 +34,7 @@
register set indexed by register number, and the number of
registers supported by the mapping. We don't need mappings for the
floating-point and SSE registers, since the difference between
- 64-bit and 32-bit variants are negligable. The difference in the
+ 64-bit and 32-bit variants are negligible. The difference in the
number of SSE registers is already handled by the target code. */
/* General-purpose register mapping for native 32-bit code. */
@@ -65,7 +65,7 @@ amd64obsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- /* OpenBSD core dumps don't use seperate register sets for the
+ /* OpenBSD core dumps don't use separate register sets for the
general-purpose and floating-point registers. */
cb (".reg", tdep->sizeof_gregset + I387_SIZEOF_FXSAVE,
@@ -1174,7 +1174,7 @@ amd64_get_unused_input_int_reg (const struct amd64_insn *details)
/* Avoid RAX. */
used_regs_mask |= 1 << EAX_REG_NUM;
- /* Similarily avoid RDX, implicit operand in divides. */
+ /* Similarly avoid RDX, implicit operand in divides. */
used_regs_mask |= 1 << EDX_REG_NUM;
/* Avoid RSP. */
used_regs_mask |= 1 << ESP_REG_NUM;
@@ -255,7 +255,7 @@ amd64_windows_push_dummy_call
/* Pass "hidden" argument". */
if (struct_return)
{
- /* The "hidden" argument is passed throught the first argument
+ /* The "hidden" argument is passed through the first argument
register. */
const int arg_regnum = amd64_windows_dummy_call_integer_regs[0];
@@ -98,7 +98,7 @@ legacy_register_sim_regno (struct gdbarch *gdbarch, int regnum)
gdb_assert (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch));
/* NOTE: cagney/2002-05-13: The old code did it this way and it is
suspected that some GDB/SIM combinations may rely on this
- behavour. The default should be one2one_register_sim_regno
+ behavior. The default should be one2one_register_sim_regno
(below). */
if (gdbarch_register_name (gdbarch, regnum) != NULL
&& gdbarch_register_name (gdbarch, regnum)[0] != '\0')
@@ -687,7 +687,7 @@ struct arm_linux_hw_breakpoint
The Linux ptrace interface to hardware break-/watch-points presents the
values in a vector centred around 0 (which is used fo generic information).
- Positive indicies refer to breakpoint addresses/control registers, negative
+ Positive indices refer to breakpoint addresses/control registers, negative
indices to watchpoint addresses/control registers.
The Linux vector is indexed as follows:
@@ -61,7 +61,7 @@ extern int arm_apcs_32;
/* Under ARM GNU/Linux the traditional way of performing a breakpoint
is to execute a particular software interrupt, rather than use a
- particular undefined instruction to provoke a trap. Upon exection
+ particular undefined instruction to provoke a trap. Upon execution
of the software interrupt the kernel stops the inferior with a
SIGTRAP, and wakes the debugger. */
@@ -3920,7 +3920,7 @@ arm_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
si = pop_stack_item (si);
}
- /* Finally, update teh SP register. */
+ /* Finally, update the SP register. */
regcache_cooked_write_unsigned (regcache, ARM_SP_REGNUM, sp);
return sp;
@@ -10144,7 +10144,7 @@ arm_record_extension_space (insn_decode_record *arm_insn_r)
if (0 == insn_op1 || 1 == insn_op1)
{
/* SMLA<x><y>, SMLAW<y>, SMULW<y>. */
- /* We dont do optimization for SMULW<y> where we
+ /* We don't do optimization for SMULW<y> where we
need only Rd. */
record_buf[0] = bits (arm_insn_r->arm_insn, 12, 15);
record_buf[1] = ARM_PS_REGNUM;
@@ -10608,7 +10608,7 @@ arm_record_ld_st_imm_offset (insn_decode_record *arm_insn_r)
record_buf[arm_insn_r->reg_rec_count++] = reg_dest;
/* The LDR instruction is capable of doing branching. If MOV LR, PC
- preceeds a LDR instruction having R15 as reg_base, it
+ precedes a LDR instruction having R15 as reg_base, it
emulates a branch and link instruction, and hence we need to save
CPSR and PC as well. */
if (ARM_PC_REGNUM == reg_dest)
@@ -10732,7 +10732,7 @@ arm_record_ld_st_reg_offset (insn_decode_record *arm_insn_r)
if (15 == reg_src2)
{
/* If R15 was used as Rn, hence current PC+8. */
- /* Pre-indexed mode doesnt reach here ; illegal insn. */
+ /* Pre-indexed mode doesn't reach here ; illegal insn. */
u_regval[0] = u_regval[0] + 8;
}
/* Calculate target store address, Rn +/- Rm, register offset. */
@@ -11045,7 +11045,7 @@ arm_record_b_bl (insn_decode_record *arm_insn_r)
/* Handle B, BL, BLX(1) insns. */
/* B simply branches so we do nothing here. */
- /* Note: BLX(1) doesnt fall here but instead it falls into
+ /* Note: BLX(1) doesn't fall here but instead it falls into
extension space. */
if (bit (arm_insn_r->arm_insn, 24))
{
@@ -301,7 +301,7 @@ static const struct inferior_data *auxv_inferior_data;
/* Auxiliary Vector information structure. This is used by GDB
for caching purposes for each inferior. This helps reduce the
- overhead of transfering data from a remote target to the local host. */
+ overhead of transferring data from a remote target to the local host. */
struct auxv_info
{
LONGEST length;
@@ -1880,7 +1880,7 @@ gen_expr (struct expression *exp, union exp_element **pc,
gen_expr (exp, pc, ax, &value3);
gen_usual_unary (exp, ax, &value3);
ax_label (ax, end, ax->len);
- /* This is arbitary - what if B and C are incompatible types? */
+ /* This is arbitrary - what if B and C are incompatible types? */
value->type = value2.type;
value->kind = value2.kind;
break;
@@ -286,7 +286,7 @@ bcache_full (const void *addr, int length, struct bcache *bcache, int *added)
}
-/* Compare the byte string at ADDR1 of lenght LENGHT to the
+/* Compare the byte string at ADDR1 of length LENGTH to the
string at ADDR2. Return 1 if they are equal. */
static int
@@ -12132,7 +12132,7 @@ clear_command (char *arg, int from_tty)
}
}
- /* Now go thru the 'found' chain and delete them. */
+ /* Now go through the 'found' chain and delete them. */
if (VEC_empty(breakpoint_p, found))
{
if (arg)
@@ -437,7 +437,7 @@ struct bp_location
as ``address'' (above) except for cases in which
ADJUST_BREAKPOINT_ADDRESS has computed a different address at
which to place the breakpoint in order to comply with a
- processor's architectual constraints. */
+ processor's architectural constraints. */
CORE_ADDR requested_address;
/* An additional address assigned with this location. This is currently
@@ -824,7 +824,7 @@ cplus_describe_child (const struct varobj *parent, int index,
/* Cast the parent to the base' type. Note that in gdb,
expression like
(Base1)d
- will create an lvalue, for all appearences, so we don't
+ will create an lvalue, for all appearances, so we don't
need to use more fancy:
*(Base1*)(&d)
construct.
@@ -269,7 +269,7 @@ complete_command (char *arg, int from_tty)
/* complete_line assumes that its first argument is somewhere
within, and except for filenames at the beginning of, the word to
be completed. The following crude imitation of readline's
- word-breaking tries to accomodate this. */
+ word-breaking tries to accommodate this. */
point = arg + argpoint;
while (point > arg)
{
@@ -956,7 +956,7 @@ apropos_cmd (struct ui_file *stream,
command that requires subcommands. Also called by saying just
"help".)
- I am going to split this into two seperate comamnds, help_cmd and
+ I am going to split this into two separate commands, help_cmd and
help_list. */
void
@@ -312,7 +312,7 @@ cli_interpreter_exec (void *data, const char *command_str)
struct ui_file *old_stream;
struct gdb_exception result;
- /* FIXME: cagney/2003-02-01: Need to const char *propogate
+ /* FIXME: cagney/2003-02-01: Need to const char *propagate
safe_execute_command. */
char *str = (char *) alloca (strlen (command_str) + 1);
strcpy (str, command_str);
@@ -322,7 +322,7 @@ cli_interpreter_exec (void *data, const char *command_str)
interpreter which has a new ui_file for gdb_stdout, use that one
instead of the default.
- It is important that it gets reset everytime, since the user
+ It is important that it gets reset every time, since the user
could set gdb to use a different interpreter. */
old_stream = cli_out_set_stream (cli->cli_uiout, gdb_stdout);
result = safe_execute_command (cli->cli_uiout, str, 1);
@@ -213,7 +213,7 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd,
}
/* An if command. Recursively print both arms before
- continueing. */
+ continuing. */
if (list->control_type == if_control)
{
ui_out_field_fmt (uiout, NULL, "if %s", list->line);
@@ -685,7 +685,7 @@ arg_cleanup (void *ignore)
xfree (oargs);
}
-/* Bind the incomming arguments for a user defined command to
+/* Bind the incoming arguments for a user defined command to
$arg0, $arg1 ... $argMAXUSERARGS. */
static struct cleanup *
@@ -126,7 +126,7 @@ static unsigned local_auxesz;
static int pe_file;
/* Chain of typedefs of pointers to empty struct/union types.
- They are chained thru the SYMBOL_VALUE_CHAIN. */
+ They are chained through the SYMBOL_VALUE_CHAIN. */
static struct symbol *opaque_type_chain[HASHSIZE];
@@ -1744,7 +1744,7 @@ process_coff_symbol (struct coff_symbol *cs,
This is not just a consequence of GDB's type
management; CC and GCC (at least through version
2.4) both output variables of either type char *
- or caddr_t with the type refering to the C_TPDEF
+ or caddr_t with the type referring to the C_TPDEF
symbol for caddr_t. If a future compiler cleans
this up it GDB is not ready for it yet, but if it
becomes ready we somehow need to disable this
@@ -46,7 +46,7 @@ void buffer_free (struct buffer *buffer);
/* Initialize BUFFER. BUFFER holds no memory afterwards. */
void buffer_init (struct buffer *buffer);
-/* Return a pointer into BUFFER data, effectivelly transfering
+/* Return a pointer into BUFFER data, effectivelly transferring
ownership of the buffer memory to the caller. Calling buffer_free
afterwards has no effect on the returned data. */
char* buffer_finish (struct buffer *buffer);
@@ -132,7 +132,7 @@ exceptions_state_mc (enum catcher_action action)
switch (action)
{
case CATCH_ITER:
- /* No error/quit has occured. */
+ /* No error/quit has occurred. */
return 0;
case CATCH_ITER_1:
current_catcher->state = CATCHER_RUNNING_1;
@@ -35,9 +35,9 @@ extern int gdb_signal_to_host_p (enum gdb_signal signo);
gdb_signal_to_host() returns 0 and prints a warning() on GDB's
console if SIGNO has no equivalent host representation. */
/* FIXME: cagney/1999-11-22: Here ``host'' is used incorrectly, it is
- refering to the target operating system's signal numbering.
+ referring to the target operating system's signal numbering.
Similarly, ``enum gdb_signal'' is named incorrectly, ``enum
- gdb_signal'' would probably be better as it is refering to GDB's
+ gdb_signal'' would probably be better as it is referring to GDB's
internal representation of a target operating system's signal. */
extern enum gdb_signal gdb_signal_from_host (int);
extern int gdb_signal_to_host (enum gdb_signal);
@@ -358,7 +358,7 @@ gdb_signal_from_host (int hostsig)
}
/* Convert a OURSIG (an enum gdb_signal) to the form used by the
- target operating system (refered to as the ``host'') or zero if the
+ target operating system (referred to as the ``host'') or zero if the
equivalent host signal is not available. Set/clear OURSIG_OK
accordingly. */
@@ -211,7 +211,7 @@ vcomplaint (struct complaints **c, const char *file,
if (series == ISOLATED_MESSAGE)
/* It would be really nice to use begin_line() here.
Unfortunately that function doesn't track GDB_STDERR and
- consequently will sometimes supress a line when it
+ consequently will sometimes suppress a line when it
shouldn't. */
fputs_filtered ("\n", gdb_stderr);
else
@@ -294,7 +294,7 @@ clear_complaints (struct complaints **c, int less_verbose, int noisy)
case SUBSEQUENT_MESSAGE:
/* It would be really nice to use begin_line() here.
Unfortunately that function doesn't track GDB_STDERR and
- consequently will sometimes supress a line when it
+ consequently will sometimes suppress a line when it
shouldn't. */
fputs_unfiltered ("\n", gdb_stderr);
break;
@@ -62,7 +62,7 @@ bfd *core_bfd = NULL;
struct target_ops *core_target;
-/* Backward compatability with old way of specifying core files. */
+/* Backward compatibility with old way of specifying core files. */
void
core_file_command (char *filename, int from_tty)
@@ -132,7 +132,7 @@ cp_is_vtbl_member (struct type *type)
/* The type name of the thunk pointer is NULL when using
dwarf2. We could test for a pointer to a function, but
there is no type info for the virtual table either, so it
- wont help. */
+ won't help. */
return cp_is_vtbl_ptr_type (type);
}
}
@@ -3373,7 +3373,7 @@ get_data_from_address (unsigned short *inst, CORE_ADDR address,
return value;
}
-/* Handles the assign addresing mode for the ADD, SUB, CMP, AND, OR and MOVE
+/* Handles the assign addressing mode for the ADD, SUB, CMP, AND, OR and MOVE
instructions. The MOVE instruction is the move from source to register. */
static void
@@ -3432,7 +3432,7 @@ three_operand_add_sub_cmp_and_or_op (unsigned short inst,
inst_env->disable_interrupt = 0;
}
-/* Handles the index addresing mode for the ADD, SUB, CMP, AND, OR and MOVE
+/* Handles the index addressing mode for the ADD, SUB, CMP, AND, OR and MOVE
instructions. The MOVE instruction is the move from source to register. */
static void
@@ -3459,7 +3459,7 @@ handle_prefix_index_mode_for_aritm_op (unsigned short inst,
inst_env->disable_interrupt = 0;
}
-/* Handles the autoincrement and indirect addresing mode for the ADD, SUB,
+/* Handles the autoincrement and indirect addressing mode for the ADD, SUB,
CMP, AND OR and MOVE instruction. The MOVE instruction is the move from
source to register. */
@@ -1990,7 +1990,7 @@ darwin_thread_alive (struct target_ops *ops, ptid_t ptid)
copy it to RDADDR in gdb's address space.
If WRADDR is not NULL, write gdb's LEN bytes from WRADDR and copy it
to ADDR in inferior task's address space.
- Return 0 on failure; number of bytes read / writen otherwise. */
+ Return 0 on failure; number of bytes read/written otherwise. */
static int
darwin_read_write_inferior (task_t task, CORE_ADDR addr,
@@ -247,7 +247,7 @@ struct header_file_location
BINCL/EINCL defs for this file. */
};
-/* The actual list and controling variables. */
+/* The actual list and controlling variables. */
static struct header_file_location *bincl_list, *next_bincl;
static int bincls_allocated;
@@ -2582,7 +2582,7 @@ read_ofile_symtab (struct objfile *objfile, struct partial_symtab *pst)
else if (type & N_EXT || type == (unsigned char) N_TEXT
|| type == (unsigned char) N_NBTEXT)
{
- /* Global symbol: see if we came across a dbx defintion for
+ /* Global symbol: see if we came across a dbx definition for
a corresponding symbol. If so, store the value. Remove
syms from the chain when their values are stored, but
search the whole chain, as there may be several syms from
@@ -65,7 +65,7 @@ static struct cmd_list_element *dcache_show_list = NULL;
is set, etc., then the chunk is skipped. Those chunks are handled
in target_xfer_memory() (or target_xfer_memory_partial()).
- This doesn't occur very often. The most common occurance is when
+ This doesn't occur very often. The most common occurrence is when
the last bit of the .text segment and the first bit of the .data
segment fall within the same dcache page with a ro/cacheable memory
region defined for the .text segment and a rw/non-cacheable memory
@@ -822,7 +822,7 @@ store_typed_floating (void *addr, const struct type *type, DOUBLEST val)
in, and the target processor may only refer to, the first N <
TYPE_LENGTH (type) bits. If the end of the buffer wasn't
initialized, GDB would write undefined data to the target. An
- errant program, refering to that undefined data, would then
+ errant program, referring to that undefined data, would then
become non-deterministic.
See also the function convert_typed_floating below. */
@@ -359,7 +359,7 @@ dtrace_process_dof_probe (struct objfile *objfile,
It follows that if there are DTrace is-enabled probes defined for
some provider/name but no DTrace regular probes defined then the
- GDB user wont be able to enable/disable these conditionals. */
+ GDB user won't be able to enable/disable these conditionals. */
num_probes = DOF_UINT (dof, probe->dofpr_noffs);
if (num_probes == 0)
@@ -1079,7 +1079,7 @@ dwarf2_frame_cache (struct frame_info *this_frame, void **this_cache)
its return address. As a result the return address will
point at some random instruction, and the CFI for that
instruction is probably worthless to us. GCC's unwinder solves
- this problem by substracting 1 from the return address to get an
+ this problem by subtracting 1 from the return address to get an
address in the middle of a presumed call instruction (or the
instruction in the associated delay slot). This should only be
done for "normal" frames and not for resume-type frames (signal
@@ -1232,7 +1232,7 @@ incomplete CFI data; unspecified registers (e.g., %s) at %s"),
&fs->regs.reg[fs->retaddr_column];
/* It seems rather bizarre to specify an "empty" column as
- the return adress column. However, this is exactly
+ the return address column. However, this is exactly
what GCC does on some targets. It turns out that GCC
assumes that the return address can be found in the
register corresponding to the return address column.
@@ -1425,7 +1425,7 @@ static int
dwarf2_frame_sniffer (const struct frame_unwind *self,
struct frame_info *this_frame, void **this_cache)
{
- /* Grab an address that is guarenteed to reside somewhere within the
+ /* Grab an address that is guaranteed to reside somewhere within the
function. get_frame_pc(), with a no-return next function, can
end up returning something past the end of this function's body.
If the frame we're sniffing for is a signal frame whose start
@@ -1785,7 +1785,7 @@ bsearch_fde_cmp (const void *key, const void *element)
}
/* Find the FDE for *PC. Return a pointer to the FDE, and store the
- inital location associated with it into *PC. */
+ initial location associated with it into *PC. */
static struct dwarf2_fde *
dwarf2_frame_find_fde (CORE_ADDR *pc, CORE_ADDR *out_offset)
@@ -781,7 +781,7 @@ func_addr_to_tail_call_list (struct gdbarch *gdbarch, CORE_ADDR addr)
via its tail calls (incl. transitively). Throw NO_ENTRY_VALUE_ERROR if it
can call itself via tail calls.
- If a funtion can tail call itself its entry value based parameters are
+ If a function can tail call itself its entry value based parameters are
unreliable. There is no verification whether the value of some/all
parameters is unchanged through the self tail call, we expect if there is
a self tail call all the parameters can be modified. */
@@ -13774,7 +13774,7 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu)
if (child_type != NULL)
{
- /* The range type was succesfully read. Save it for the
+ /* The range type was successfully read. Save it for the
array type creation. */
if ((ndim % DW_FIELD_ALLOC_CHUNK) == 0)
{
@@ -17179,7 +17179,7 @@ die_is_declaration (struct die_info *die, struct dwarf2_cu *cu)
which value is non-zero. However, we have to be careful with
DIEs having a DW_AT_specification attribute, because dwarf2_attr()
(via dwarf2_flag_true_p) follows this attribute. So we may
- end up accidently finding a declaration attribute that belongs
+ end up accidentally finding a declaration attribute that belongs
to a different DIE referenced by the specification attribute,
even though the given DIE does not have a declaration attribute. */
return (dwarf2_flag_true_p (die, DW_AT_declaration, cu)
@@ -1226,7 +1226,7 @@ evaluate_subexp_standard (struct type *expect_type,
/* Found a function symbol. Now we will substitute its
value in place of the message dispatcher (obj_msgSend),
- so that we call the method directly instead of thru
+ so that we call the method directly instead of through
the dispatcher. The main reason for doing this is that
we can now evaluate the return value and parameter values
according to their known data types, in case we need to
@@ -60,7 +60,7 @@ typedef void (event_handler_func) (event_data);
read. Servicing an event simply means that the procedure PROC will
be called. We have 2 queues, one for file handlers that we listen
to in the event loop, and one for the file handlers+events that are
- ready. The procedure PROC associated with each event is dependant
+ ready. The procedure PROC associated with each event is dependent
of the event source. In the case of monitored file descriptors, it
is always the same (handle_file_event). Its duty is to invoke the
handler associated with the file descriptor whose state change
@@ -810,7 +810,7 @@ gdb_wait_for_event (int block)
FD_ZERO (&gdb_notifier.ready_masks[1]);
FD_ZERO (&gdb_notifier.ready_masks[2]);
- /* Dont print anything if we got a signal, let gdb handle
+ /* Don't print anything if we got a signal, let gdb handle
it. */
if (errno != EINTR)
perror_with_name (("select"));
@@ -457,7 +457,7 @@ get_command_line_buffer (void)
}
/* When there is an event ready on the stdin file descriptor, instead
- of calling readline directly throught the callback function, or
+ of calling readline directly through the callback function, or
instead of calling gdb_readline_no_editing_callback, give gdb a
chance to detect errors and do something. */
@@ -61,7 +61,7 @@ extern enum target_xfer_status
If SECTION_NAME is not NULL, only access sections with that same
name.
- Return the number of bytes actually transfered, or zero when no
+ Return the number of bytes actually transferred, or zero when no
data is available for the requested range.
This function is intended to be used from target_xfer_partial
@@ -675,7 +675,7 @@ static int quit_flag;
/* The current extension language we've called out to, or
extension_language_gdb if there isn't one.
- This must be set everytime we call out to an extension language, and reset
+ This must be set every time we call out to an extension language, and reset
to the previous value when it returns. Note that the previous value may
be a different (or the same) extension language. */
static const struct extension_language_defn *active_ext_lang
@@ -32,7 +32,7 @@ struct regcache;
the NEXT frame's register unwind method, to determine the address
of THIS frame's `base'.
- The exact meaning of `base' is highly dependant on the type of the
+ The exact meaning of `base' is highly dependent on the type of the
debug info. It is assumed that dwarf2, stabs, ... will each
provide their own methods.
@@ -701,7 +701,7 @@ frame_id_eq (struct frame_id l, struct frame_id r)
if special addresses are different, the frames are different. */
eq = 0;
else if (l.artificial_depth != r.artificial_depth)
- /* If artifical depths are different, the frames must be different. */
+ /* If artificial depths are different, the frames must be different. */
eq = 0;
else
/* Frames are equal. */
@@ -431,7 +431,7 @@ void set_current_sal_from_frame (struct frame_info *);
the old get_frame_base method was not sufficient.
get_frame_base_address: get_frame_locals_address:
- get_frame_args_address: A set of high-level debug-info dependant
+ get_frame_args_address: A set of high-level debug-info dependent
addresses that fall within the frame. These addresses almost
certainly will not match the stack address part of a frame ID (as
returned by get_frame_base).
@@ -21,7 +21,7 @@
struct ui_out;
-/* Return-code (RC) from a gdb library call. (The abreviation RC is
+/* Return-code (RC) from a gdb library call. (The abbreviation RC is
taken from the sim/common directory.) */
enum gdb_rc {
@@ -33,7 +33,7 @@ enum gdb_rc {
internal / quit indication it is not possible to return that
here. */
GDB_RC_FAIL = 0,
- /* No error occured but nothing happened. Due to the catch_errors()
+ /* No error occurred but nothing happened. Due to the catch_errors()
interface, this must be non-zero. */
GDB_RC_NONE = 1,
/* The operation was successful. Due to the catch_errors()
@@ -488,7 +488,7 @@ wait_for_event (void)
FD_ZERO (&gdb_notifier.ready_masks[1]);
FD_ZERO (&gdb_notifier.ready_masks[2]);
#ifdef EINTR
- /* Dont print anything if we got a signal, let gdb handle
+ /* Don't print anything if we got a signal, let gdb handle
it. */
if (errno != EINTR)
perror_with_name ("select");
@@ -1088,7 +1088,7 @@ emit_add (uint32_t *buf, struct aarch64_register rd,
RD is the destination register.
RN is the input register.
- IMM is the immediate to substract to RN. */
+ IMM is the immediate to subtract to RN. */
static int
emit_sub (uint32_t *buf, struct aarch64_register rd,
@@ -253,7 +253,7 @@ get_next_pcs_is_thumb (struct arm_get_next_pcs *self)
}
/* Read memory from the inferiror.
- BYTE_ORDER is ignored and there to keep compatiblity with GDB's
+ BYTE_ORDER is ignored and there to keep compatibility with GDB's
read_memory_unsigned_integer. */
static ULONGEST
get_next_pcs_read_memory_unsigned_integer (CORE_ADDR memaddr,
@@ -1621,7 +1621,7 @@ linux_detach (int pid)
complete_ongoing_step_over ();
/* Stop all threads before detaching. First, ptrace requires that
- the thread is stopped to sucessfully detach. Second, thread_db
+ the thread is stopped to successfully detach. Second, thread_db
may need to uninstall thread event breakpoints from memory, which
only works with a stopped process anyway. */
stop_all_lwps (0, NULL);
@@ -1535,7 +1535,7 @@ emit_insns (uint32_t *buf, int n)
/* Regardless of endian, register 3 is always high part, 4 is low part.
These defines are used when the register pair is stored/loaded.
- Likewise, to simplify code, have a similiar define for 5:6. */
+ Likewise, to simplify code, have a similar define for 5:6. */
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define TOP_FIRST "4"
@@ -227,7 +227,7 @@ do_attach (pid_t pid)
/* Read or write LEN bytes from/to inferior's MEMADDR memory address
into gdbservers's MYADDR buffer. Return number of bytes actually
- transfered. */
+ transferred. */
static int
nto_xfer_memory (off_t memaddr, unsigned char *myaddr, int len,
@@ -1276,7 +1276,7 @@ struct qxfer
the starting point. The ANNEX can be used to provide additional
data-specific information to the target.
- Return the number of bytes actually transfered, zero when no
+ Return the number of bytes actually transferred, zero when no
further transfer is possible, -1 on error, -2 when the transfer
is not supported, and -3 on a verbose error message that should
be preserved. Return of a positive value smaller than LEN does
@@ -3058,7 +3058,7 @@ handle_v_requests (char *own_buf, int packet_len, int *new_packet_len)
}
/* Resume thread and wait for another event. In non-stop mode,
- don't really wait here, but return immediatelly to the event
+ don't really wait here, but return immediately to the event
loop. */
static void
myresume (char *own_buf, int step, int sig)
@@ -3236,7 +3236,7 @@ handle_status (char *own_buf)
{
find_inferior (&all_threads, queue_stop_reply_callback, NULL);
- /* The first is sent immediatly. OK is sent if there is no
+ /* The first is sent immediately. OK is sent if there is no
stopped thread, which is the same handling of the vStopped
packet (by design). */
notif_write_event (¬if_stop, own_buf);
@@ -138,7 +138,7 @@ extern int in_queued_stop_replies (ptid_t ptid);
#define MAXBUFBYTES(N) (((N)-32)/2)
/* Buffer sizes for transferring memory, registers, etc. Set to a constant
- value to accomodate multiple register formats. This value must be at least
+ value to accommodate multiple register formats. This value must be at least
as large as the largest register set supported by gdbserver. */
#define PBUFSIZ 16384
@@ -1005,7 +1005,7 @@ EXTERN_C_POP
/* Control structure holding the read/write/etc. pointers into the
trace buffer. We need more than one of these to implement a
- transaction-like mechanism to garantees that both GDBserver and the
+ transaction-like mechanism to guarantees that both GDBserver and the
in-process agent can try to change the trace buffer
simultaneously. */
@@ -1411,7 +1411,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
/* WinCE doesn't set an initial breakpoint automatically. To
stop the inferior, we flush all currently pending debug
events -- the thread list and the dll list are always
- reported immediatelly without delay, then, we suspend all
+ reported immediately without delay, then, we suspend all
threads and pretend we saw a trap at the current PC of the
main thread.
@@ -1435,7 +1435,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
else
#endif
{
- /* Keep the wait time low enough for confortable remote
+ /* Keep the wait time low enough for comfortable remote
interruption, but high enough so gdbserver doesn't become a
bottleneck. */
if (!WaitForDebugEvent (¤t_event, 250))
@@ -1444,7 +1444,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
if (e == ERROR_PIPE_NOT_CONNECTED)
{
- /* This will happen if the loader fails to succesfully
+ /* This will happen if the loader fails to successfully
load the application, e.g., if the main executable
tries to pull in a non-existing export from a
DLL. */
@@ -556,7 +556,7 @@ address_space_name_to_int (struct gdbarch *gdbarch, char *space_identifier)
}
/* Identify address space identifier by integer flag as defined in
- gdbtypes.h -- return the string version of the adress space name. */
+ gdbtypes.h -- return the string version of the address space name. */
const char *
address_space_int_to_name (struct gdbarch *gdbarch, int space_flag)
@@ -656,7 +656,7 @@ make_type_with_address_space (struct type *type, int space_flag)
If TYPEPTR and *TYPEPTR are non-zero, then *TYPEPTR points to
storage to hold the new qualified type; *TYPEPTR and TYPE must be
in the same objfile. Otherwise, allocate fresh memory for the new
- type whereever TYPE lives. If TYPEPTR is non-zero, set it to the
+ type wherever TYPE lives. If TYPEPTR is non-zero, set it to the
new type we construct. */
struct type *
@@ -739,7 +739,7 @@ make_atomic_type (struct type *type)
/* Replace the contents of ntype with the type *type. This changes the
contents, rather than the pointer for TYPE_MAIN_TYPE (ntype); thus
- the changes are propogated to all types in the TYPE_CHAIN.
+ the changes are propagated to all types in the TYPE_CHAIN.
In order to build recursive types, it's inevitable that we'll need
to update types in place --- but this sort of indiscriminate
@@ -1108,7 +1108,7 @@ create_array_type_with_stride (struct type *result_type,
undefined by setting it to zero. Although we are not expected
to trust TYPE_LENGTH in this case, setting the size to zero
allows us to avoid allocating objects of random sizes in case
- we accidently do. */
+ we accidentally do. */
TYPE_LENGTH (result_type) = 0;
}
@@ -1306,7 +1306,7 @@ set_type_self_type (struct type *type, struct type *self_type)
}
/* Smash TYPE to be a type of pointers to members of SELF_TYPE with type
- TO_TYPE. A member pointer is a wierd thing -- it amounts to a
+ TO_TYPE. A member pointer is a weird thing -- it amounts to a
typed offset into a struct, e.g. "an int at offset 8". A MEMBER
TYPE doesn't include the offset (that's the value of the MEMBER
itself), but does include the structure type into which it points
@@ -1561,7 +1561,7 @@ lookup_template_type (char *name, struct type *type,
TYPE can be either a struct or union, or a pointer or reference to
a struct or union. If it is a pointer or reference, its target
- type is automatically used. Thus '.' and '->' are interchangable,
+ type is automatically used. Thus '.' and '->' are interchangeable,
as specified for the definitions of the expression element types
STRUCTOP_STRUCT and STRUCTOP_PTR.
@@ -1439,7 +1439,7 @@ inf_continue (struct inf *inf)
/* The inferior used for all gdb target ops. */
struct inf *gnu_current_inf = 0;
-/* The inferior being waited for by gnu_wait. Since GDB is decidely not
+/* The inferior being waited for by gnu_wait. Since GDB is decidedly not
multi-threaded, we don't bother to lock this. */
struct inf *waiting_inf;
@@ -1576,7 +1576,7 @@ rewait:
else if (kind == TARGET_WAITKIND_STOPPED
&& w->status.value.sig == GDB_SIGNAL_TRAP)
/* Ah hah! A SIGTRAP from the inferior while starting up probably
- means we've succesfully completed an exec! */
+ means we've successfully completed an exec! */
{
inf_debug (inf, "one pending exec completed");
}
@@ -1859,7 +1859,7 @@ get_cr3 (void)
the first Page Table's entry for its own address and the Page
Directory entry for that Page Table will hold the same
physical address. The loop below searches the entire UMB
- range of addresses for such an occurence. */
+ range of addresses for such an occurrence. */
unsigned long addr, pte_idx;
for (addr = 0xb0000, pte_idx = 0xb0;
@@ -86,7 +86,7 @@ struct hppa_objfile_private
by hppa-hpux-tdep.c and shared with pa64solib.c and somsolib.c. */
static const struct objfile_data *hppa_objfile_priv_data = NULL;
-/* Get at various relevent fields of an instruction word. */
+/* Get at various relevant fields of an instruction word. */
#define MASK_5 0x1f
#define MASK_11 0x7ff
#define MASK_14 0x3fff
@@ -368,7 +368,7 @@ read_unwind_info (struct objfile *objfile)
/* For reasons unknown the HP PA64 tools generate multiple unwinder
sections in a single executable. So we just iterate over every
- section in the BFD looking for unwinder sections intead of trying
+ section in the BFD looking for unwinder sections instead of trying
to do a lookup with bfd_get_section_by_name.
First determine the total size of the unwind tables so that we
@@ -73,7 +73,7 @@ i386fbsd_resume (struct target_ops *ops,
request = PT_CONTINUE;
}
- /* An addres of (caddr_t) 1 tells ptrace to continue from where it
+ /* An address of (caddr_t) 1 tells ptrace to continue from where it
was. (If GDB wanted it to start some other way, we have already
written a new PC value to the child.) */
if (ptrace (request, pid, (caddr_t) 1,
@@ -148,7 +148,7 @@ store_register (const struct regcache *regcache, int regno)
}
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
@@ -245,7 +245,7 @@ static void store_regs (const struct regcache *regcache, int tid, int regno) {}
#endif
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register array with the floating-point register values in
*FPREGSETP. */
@@ -270,7 +270,7 @@ fill_fpregset (const struct regcache *regcache,
#ifdef HAVE_PTRACE_GETREGS
/* Fetch all floating-point registers from process/thread TID and store
- thier values in GDB's register array. */
+ their values in GDB's register array. */
static void
fetch_fpregs (struct regcache *regcache, int tid)
@@ -315,7 +315,7 @@ store_fpregs (const struct regcache *regcache, int tid, int regno)
#endif
-/* Transfering floating-point and SSE registers to and from GDB. */
+/* Transferring floating-point and SSE registers to and from GDB. */
/* Fetch all registers covered by the PTRACE_GETREGSET request from
process/thread TID and store their values in GDB's register array.
@@ -162,7 +162,7 @@ i386obsd_aout_iterate_over_regset_sections (struct gdbarch *gdbarch,
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- /* OpenBSD a.out core dumps don't use seperate register sets for the
+ /* OpenBSD a.out core dumps don't use separate register sets for the
general-purpose and floating-point registers. */
cb (".reg", tdep->sizeof_gregset + I387_SIZEOF_FSAVE,
@@ -1487,7 +1487,7 @@ struct i386_insn i386_frame_setup_skip_insns[] =
/* Check for `mov imm32, r32'. Note that there is an alternative
encoding for `mov m32, %eax'.
- ??? Should we handle SIB adressing here?
+ ??? Should we handle SIB addressing here?
??? Should we handle 16-bit operand-sizes here? */
/* `movl m32, %eax' */
@@ -8356,7 +8356,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep->st0_regnum = I386_ST0_REGNUM;
- /* I386_NUM_XREGS includes %mxcsr, so substract one. */
+ /* I386_NUM_XREGS includes %mxcsr, so subtract one. */
tdep->num_xmm_regs = I386_NUM_XREGS - 1;
tdep->jb_pc_offset = -1;
@@ -589,7 +589,7 @@ fetch_instruction (CORE_ADDR addr, instruction_type *it, long long *instr)
If we would like to store the whole bundle to SHADOW_CONTENTS we would have
to store already the base address (`address & ~0x0f') into PLACED_ADDRESS.
In such case there is no other place where to store
- SLOTNUM (`adress & 0x0f', value in the range <0..2>). We need to know
+ SLOTNUM (`address & 0x0f', value in the range <0..2>). We need to know
SLOTNUM in ia64_memory_remove_breakpoint.
There is one special case where we need to be extra careful:
@@ -154,7 +154,7 @@
/* Predicate registers: There are 64 of these 1-bit registers. We
define a single register which is used to communicate these values
to/from the target. We will somehow contrive to make it appear
- that IA64_PR0_REGNUM thru IA64_PR63_REGNUM hold the actual values. */
+ that IA64_PR0_REGNUM through IA64_PR63_REGNUM hold the actual values. */
#define IA64_PR_REGNUM 330
/* Instruction pointer: 64 bits wide. */
@@ -570,7 +570,7 @@ inf_ptrace_xfer_partial (struct target_ops *ops, enum target_object object,
case TARGET_OBJECT_AUXV:
#if defined (PT_IO) && defined (PIOD_READ_AUXV)
/* OpenBSD 4.5 has a new PIOD_READ_AUXV operation for the PT_IO
- request that allows us to read the auxilliary vector. Other
+ request that allows us to read the auxiliary vector. Other
BSD's may follow if they feel the need to support PIE. */
{
struct ptrace_io_desc piod;
@@ -783,7 +783,7 @@ call_function_by_hand_dummy (struct value *function,
void parameterless generic dummy frame calls to frameless
functions will create a sequence of effectively identical
frames (SP, FP and TOS and PC the same). This, not
- suprisingly, results in what appears to be a stack in an
+ surprisingly, results in what appears to be a stack in an
infinite loop --- when GDB tries to find a generic dummy
frame on the internal dummy frame stack, it will always
find the first one.
@@ -520,7 +520,7 @@ prepare_execution_command (struct target_ops *target, int background)
}
/* Implement the "run" command. If TBREAK_AT_MAIN is set, then insert
- a temporary breakpoint at the begining of the main program before
+ a temporary breakpoint at the beginning of the main program before
running the program. */
static void
@@ -2179,7 +2179,7 @@ set_environment_command (char *arg, int from_tty)
if (arg == 0)
error_no_arg (_("environment variable and value"));
- /* Find seperation between variable name and value. */
+ /* Find separation between variable name and value. */
p = (char *) strchr (arg, '=');
val = (char *) strchr (arg, ' ');
@@ -2698,7 +2698,7 @@ attach_post_wait (char *args, int from_tty, enum attach_post_wait_mode mode)
/* The user requested an `attach&', so be sure to leave threads
that didn't get a signal running. */
- /* Immediatelly resume all suspended threads of this inferior,
+ /* Immediately resume all suspended threads of this inferior,
and this inferior only. This should have no effect on
already running threads. If a thread has been stopped with a
signal, leave it be. */
@@ -3148,7 +3148,7 @@ info_proc_cmd_1 (char *args, enum info_proc_what what, int from_tty)
}
}
-/* Implement `info proc' when given without any futher parameters. */
+/* Implement `info proc' when given without any further parameters. */
static void
info_proc_cmd (char *args, int from_tty)
@@ -1432,7 +1432,7 @@ step_over_info_valid_p (void)
register contents, and memory. We use this in step n1.
- gdbarch_displaced_step_fixup adjusts registers and memory after
- we have successfuly single-stepped the instruction, to yield the
+ we have successfully single-stepped the instruction, to yield the
same effect the instruction would have had if we had executed it
at its original address. We use this in step n3.
@@ -6179,7 +6179,7 @@ handle_signal_stop (struct execution_control_state *ecs)
return;
}
- /* Note: step_resume_breakpoint may be non-NULL. This occures
+ /* Note: step_resume_breakpoint may be non-NULL. This occurs
when either there's a nested signal, or when there's a
pending signal enabled just as the signal handler returns
(leaving the inferior at the step-resume-breakpoint without
@@ -2712,7 +2712,7 @@ decode_line_with_last_displayed (char *string, int flags)
-/* First, some functions to initialize stuff at the beggining of the
+/* First, some functions to initialize stuff at the beginning of the
function. */
static void
@@ -1510,7 +1510,7 @@ linux_nat_detach (struct target_ops *ops, const char *args, int from_tty)
inferiors running. */
/* Stop all threads before detaching. ptrace requires that the
- thread is stopped to sucessfully detach. */
+ thread is stopped to successfully detach. */
iterate_over_lwps (pid_to_ptid (pid), stop_callback, NULL);
/* ... and wait until all of them have reported back that
they're no longer running. */
@@ -3771,7 +3771,7 @@ linux_nat_kill (struct target_ops *ops)
ptid_t ptid = pid_to_ptid (ptid_get_pid (inferior_ptid));
/* Stop all threads before killing them, since ptrace requires
- that the thread is stopped to sucessfully PTRACE_KILL. */
+ that the thread is stopped to successfully PTRACE_KILL. */
iterate_over_lwps (ptid, stop_callback, NULL);
/* ... and wait until all of them have reported back that
they're no longer running. */
@@ -182,7 +182,7 @@ static const struct inferior_data *linux_inferior_data;
/* Linux-specific cached data. This is used by GDB for caching
purposes for each inferior. This helps reduce the overhead of
- transfering data from a remote target to the local host. */
+ transferring data from a remote target to the local host. */
struct linux_info
{
/* Cache of the inferior's vsyscall/vDSO mapping range. Only valid
@@ -2001,7 +2001,7 @@ linux_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
if (!note_data)
return NULL;
- /* Auxillary vector. */
+ /* Auxiliary vector. */
auxv_len = target_read_alloc (¤t_target, TARGET_OBJECT_AUXV,
NULL, &auxv);
if (auxv_len > 0)
@@ -58,7 +58,7 @@ static int regmap[] = {
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
@@ -168,7 +168,7 @@ store_regs (const struct regcache *regcache, int tid, int regno)
-/* Transfering floating-point registers between GDB, inferiors and cores.
+/* Transferring floating-point registers between GDB, inferiors and cores.
Since M32R has no floating-point registers, these functions do nothing. */
void
@@ -292,7 +292,7 @@ decode_prologue (struct gdbarch *gdbarch,
if (insn == 0x0000)
break;
- /* If this is a 32 bit instruction, we dont want to examine its
+ /* If this is a 32 bit instruction, we don't want to examine its
immediate data as though it were an instruction. */
if (current_pc & 0x02)
{
@@ -301,7 +301,7 @@ static void store_regs (const struct regcache *regcache, int tid, int regno)
#endif
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* What is the address of fpN within the floating-point register set F? */
#define FPREG_ADDR(f, n) (&(f)->fpregs[(n) * 3])
@@ -354,7 +354,7 @@ fill_fpregset (const struct regcache *regcache,
#ifdef HAVE_PTRACE_GETREGS
/* Fetch all floating-point registers from process/thread TID and store
- thier values in GDB's register array. */
+ their values in GDB's register array. */
static void
fetch_fpregs (struct regcache *regcache, int tid)
@@ -69,7 +69,7 @@ char *macro_expand_once (const char *source,
freeing it, using xfree.
We need this expand-one-token-at-a-time interface in order to
- accomodate GDB's C expression parser, which may not consume the
+ accommodate GDB's C expression parser, which may not consume the
entire string. When the user enters a command like
(gdb) break *func+20 if x == 5
@@ -90,7 +90,7 @@ struct macro_definition;
line info, but not in macro info. This means that GDB's symtabs
(built from the former, among other things) may mention filenames
that the #inclusion tree (built from the latter) doesn't have any
- record of. See macroscope.c:sal_macro_scope for how to accomodate
+ record of. See macroscope.c:sal_macro_scope for how to accommodate
this.
It's worth noting that libcpp has a simpler way of representing all
@@ -190,7 +190,7 @@ static const struct ecoff_debug_swap *debug_swap;
static struct ecoff_debug_info *debug_info;
-/* Pointer to current file decriptor record, and its index. */
+/* Pointer to current file descriptor record, and its index. */
static FDR *cur_fdr;
static int cur_fd;
@@ -420,7 +420,7 @@ static struct parse_stack
struct type *cur_type; /* Type we parse fields for. */
int cur_field; /* Field number in cur_type. */
- CORE_ADDR procadr; /* Start addres of this procedure. */
+ CORE_ADDR procadr; /* Start address of this procedure. */
int numargs; /* Its argument count. */
}
@@ -1336,7 +1336,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
consequence of GDB's type management; CC and GCC (at
least through version 2.4) both output variables of
either type char * or caddr_t with the type
- refering to the stTypedef symbol for caddr_t. If a future
+ referring to the stTypedef symbol for caddr_t. If a future
compiler cleans this up it GDB is not ready for it
yet, but if it becomes ready we somehow need to
disable this check (without breaking the PCC/GCC2.4
@@ -2562,14 +2562,14 @@ parse_partial_symbols (minimal_symbol_reader &reader,
/* On certain platforms, some extra label symbols can be
generated by the linker. One possible usage for this kind
- of symbols is to represent the address of the begining of a
+ of symbols is to represent the address of the beginning of a
given section. For instance, on Tru64 5.1, the address of
the _ftext label is the start address of the .text section.
The storage class of these symbols is usually directly
related to the section to which the symbol refers. For
instance, on Tru64 5.1, the storage class for the _fdata
- label is scData, refering to the .data section.
+ label is scData, referring to the .data section.
It is actually possible that the section associated to the
storage class of the label does not exist. On True64 5.1
@@ -58,7 +58,7 @@
/* A quick recap for GDB hackers not familiar with the whole Toshiba
Media Processor story:
- The MeP media engine is a configureable processor: users can design
+ The MeP media engine is a configurable processor: users can design
their own coprocessors, implement custom instructions, adjust cache
sizes, select optional standard facilities like add-and-saturate
instructions, and so on. Then, they can build custom versions of
@@ -185,7 +185,7 @@ static struct mi_cmd mi_cmds[] =
static struct mi_cmd **mi_table;
-/* A prime large enough to accomodate the entire command table. */
+/* A prime large enough to accommodate the entire command table. */
enum
{
MI_TABLE_SIZE = 227
@@ -58,7 +58,7 @@ extern int mi_getopt_allow_unknown (const char *prefix, int argc,
/* mi_valid_noargs determines if ARGC/ARGV are a valid set of
parameters to satisfy an MI function that is not supposed to
- recieve any arguments.
+ receive any arguments.
An MI function that should not receive arguments can still be
passed parameters after the special option '--' such as below.
@@ -1518,7 +1518,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
ui_out_field_core_addr (uiout, "next-page", gdbarch, addr + total_bytes);
ui_out_field_core_addr (uiout, "prev-page", gdbarch, addr - total_bytes);
- /* Build the result as a two dimentional table. */
+ /* Build the result as a two dimensional table. */
{
struct ui_file *stream;
struct cleanup *cleanup_stream;
@@ -169,7 +169,7 @@ microblaze_alloc_frame_cache (void)
/* The base of the current frame is in a frame pointer register.
This register is noted in frame_extra_info->fp_regnum.
- Note that the existance of an FP might also indicate that the
+ Note that the existence of an FP might also indicate that the
function has called alloca. */
#define MICROBLAZE_MY_FRAME_IN_FP 0x2
@@ -523,7 +523,7 @@ mips_xfer_register (struct gdbarch *gdbarch, struct regcache *regcache,
}
/* Determine if a MIPS3 or later cpu is operating in MIPS{1,2} FPU
- compatiblity mode. A return value of 1 means that we have
+ compatibility mode. A return value of 1 means that we have
physical 64-bit registers, but should treat them as 32-bit registers. */
static int
@@ -539,7 +539,7 @@ mips2_fp_compat (struct frame_info *frame)
/* FIXME drow 2002-03-10: This is disabled until we can do it consistently,
in all the places we deal with FP registers. PR gdb/413. */
/* Otherwise check the FR bit in the status register - it controls
- the FP compatiblity mode. If it is clear we are in compatibility
+ the FP compatibility mode. If it is clear we are in compatibility
mode. */
if ((get_frame_register_unsigned (frame, MIPS_PS_REGNUM) & ST0_FR) == 0)
return 1;
@@ -559,7 +559,7 @@ static void reinit_frame_cache_sfunc (char *, int, struct cmd_list_element *);
static struct cmd_list_element *setmipscmdlist = NULL;
static struct cmd_list_element *showmipscmdlist = NULL;
-/* Integer registers 0 thru 31 are handled explicitly by
+/* Integer registers 0 through 31 are handled explicitly by
mips_register_name(). Processor specific registers 32 and above
are listed in the following tables. */
@@ -883,7 +883,7 @@ mips_convert_register_float_case_p (struct gdbarch *gdbarch, int regnum,
}
/* This predicate tests for the case of a value of less than 8
- bytes in width that is being transfered to or from an 8 byte
+ bytes in width that is being transferred to or from an 8 byte
general purpose register. */
static int
mips_convert_register_gpreg_case_p (struct gdbarch *gdbarch, int regnum,
@@ -1036,7 +1036,7 @@ mips_register_type (struct gdbarch *gdbarch, int regnum)
return builtin_type (gdbarch)->builtin_int32;
else if (gdbarch_tdep (gdbarch)->mips64_transfers_32bit_regs_p)
/* The target, while possibly using a 64-bit register buffer,
- is only transfering 32-bits of each integer register.
+ is only transferring 32-bits of each integer register.
Reflect this in the cooked/pseudo (ABI) register value. */
return builtin_type (gdbarch)->builtin_int32;
else if (mips_abi_regsize (gdbarch) == 4)
@@ -2063,7 +2063,7 @@ micromips_next_pc (struct regcache *regcache, CORE_ADDR pc)
/* Decoding the next place to set a breakpoint is irregular for the
mips 16 variant, but fortunately, there fewer instructions. We have
to cope ith extensions for 16 bit instructions and a pair of actual
- 32 bit instructions. We dont want to set a single step instruction
+ 32 bit instructions. We don't want to set a single step instruction
on the extend instruction either. */
/* Lots of mips16 instruction formats */
@@ -2823,7 +2823,7 @@ mips_insn16_frame_cache (struct frame_info *this_frame, void **this_cache)
find_pc_partial_function (pc, NULL, &start_addr, NULL);
if (start_addr == 0)
start_addr = heuristic_proc_start (gdbarch, pc);
- /* We can't analyze the prologue if we couldn't find the begining
+ /* We can't analyze the prologue if we couldn't find the beginning
of the function. */
if (start_addr == 0)
return cache;
@@ -3258,7 +3258,7 @@ mips_micro_frame_cache (struct frame_info *this_frame, void **this_cache)
find_pc_partial_function (pc, NULL, &start_addr, NULL);
if (start_addr == 0)
start_addr = heuristic_proc_start (get_frame_arch (this_frame), pc);
- /* We can't analyze the prologue if we couldn't find the begining
+ /* We can't analyze the prologue if we couldn't find the beginning
of the function. */
if (start_addr == 0)
return cache;
@@ -3636,7 +3636,7 @@ mips_insn32_frame_cache (struct frame_info *this_frame, void **this_cache)
find_pc_partial_function (pc, NULL, &start_addr, NULL);
if (start_addr == 0)
start_addr = heuristic_proc_start (gdbarch, pc);
- /* We can't analyze the prologue if we couldn't find the begining
+ /* We can't analyze the prologue if we couldn't find the beginning
of the function. */
if (start_addr == 0)
return cache;
@@ -4521,7 +4521,7 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Now load as many as possible of the first arguments into
- registers, and push the rest onto the stack. Loop thru args
+ registers, and push the rest onto the stack. Loop through args
from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
@@ -4691,7 +4691,7 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Note!!! This is NOT an else clause. Odd sized
- structs may go thru BOTH paths. Floating point
+ structs may go through BOTH paths. Floating point
arguments will not. */
/* Write this portion of the argument to a general
purpose register. */
@@ -4909,7 +4909,7 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Now load as many as possible of the first arguments into
- registers, and push the rest onto the stack. Loop thru args
+ registers, and push the rest onto the stack. Loop through args
from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
@@ -5040,7 +5040,7 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Note!!! This is NOT an else clause. Odd sized
- structs may go thru BOTH paths. */
+ structs may go through BOTH paths. */
/* Write this portion of the argument to a general
purpose register. */
if (argreg <= MIPS_LAST_ARG_REGNUM (gdbarch))
@@ -5374,7 +5374,7 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Now load as many as possible of the first arguments into
- registers, and push the rest onto the stack. Loop thru args
+ registers, and push the rest onto the stack. Loop through args
from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
@@ -5537,7 +5537,7 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Note!!! This is NOT an else clause. Odd sized
- structs may go thru BOTH paths. */
+ structs may go through BOTH paths. */
/* Write this portion of the argument to a general
purpose register. */
if (argreg <= MIPS_LAST_ARG_REGNUM (gdbarch))
@@ -5599,7 +5599,7 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
In older ABIs, the caller reserved space for
registers that contained arguments. This was loosely
- refered to as their "home". Consequently, space is
+ referred to as their "home". Consequently, space is
always allocated. */
stack_offset += align_up (partial_len, MIPS32_REGSIZE);
@@ -5896,7 +5896,7 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Now load as many as possible of the first arguments into
- registers, and push the rest onto the stack. Loop thru args
+ registers, and push the rest onto the stack. Loop through args
from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
@@ -6000,7 +6000,7 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
/* Note!!! This is NOT an else clause. Odd sized
- structs may go thru BOTH paths. */
+ structs may go through BOTH paths. */
/* Write this portion of the argument to a general
purpose register. */
if (argreg <= MIPS_LAST_ARG_REGNUM (gdbarch))
@@ -6046,7 +6046,7 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
In older ABIs, the caller reserved space for
registers that contained arguments. This was loosely
- refered to as their "home". Consequently, space is
+ referred to as their "home". Consequently, space is
always allocated. */
stack_offset += align_up (partial_len, MIPS64_REGSIZE);
@@ -275,7 +275,7 @@ struct moxie_unwind_cache
};
/* Read an unsigned integer from the inferior, and adjust
- endianess. */
+ endianness. */
static ULONGEST
moxie_process_readu (CORE_ADDR addr, gdb_byte *buf,
int length, enum bfd_endian byte_order)
@@ -793,7 +793,7 @@ mt_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
int typelen;
int i, j;
- /* First handle however many args we can fit into MT_1ST_ARGREG thru
+ /* First handle however many args we can fit into MT_1ST_ARGREG through
MT_LAST_ARGREG. */
for (i = 0; i < nargs && argreg <= MT_LAST_ARGREG; i++)
{
@@ -263,7 +263,7 @@ update_thread_private_data_name (struct thread_info *new_thread,
}
else if (strcmp (newname, new_thread->priv->name) != 0)
{
- /* Reallocate if neccessary. */
+ /* Reallocate if necessary. */
int oldnamelen = strlen (new_thread->priv->name);
if (oldnamelen < newnamelen)
@@ -99,7 +99,7 @@ extern struct nto_target_ops current_nto_target;
#define nto_is_nto_target (current_nto_target.is_nto_target)
-/* Keep this consistant with neutrino syspage.h. */
+/* Keep this consistent with neutrino syspage.h. */
enum
{
CPUTYPE_X86,
@@ -553,7 +553,7 @@ compare_selectors (const void *a, const void *b)
*
* Implements the "Info selectors" command. Takes an optional regexp
* arg. Lists all objective c selectors that match the regexp. Works
- * by grepping thru all symbols for objective c methods. Output list
+ * by grepping through all symbols for objective c methods. Output list
* is sorted and uniqued.
*/
@@ -604,7 +604,7 @@ selectors_info (char *regexp, int from_tty)
error (_("Invalid regexp (%s): %s"), val, regexp);
}
- /* First time thru is JUST to get max length and count. */
+ /* First time through is JUST to get max length and count. */
ALL_MSYMBOLS (objfile, msymbol)
{
QUIT;
@@ -714,7 +714,7 @@ compare_classes (const void *a, const void *b)
*
* Implements the "info classes" command for objective c classes.
* Lists all objective c classes that match the optional regexp.
- * Works by grepping thru the list of objective c methods. List will
+ * Works by grepping through the list of objective c methods. List will
* be sorted and uniqued (since one class may have many methods).
* BUGS: will not list a class that has no methods.
*/
@@ -755,7 +755,7 @@ classes_info (char *regexp, int from_tty)
error (_("Invalid regexp (%s): %s"), val, regexp);
}
- /* First time thru is JUST to get max length and count. */
+ /* First time through is JUST to get max length and count. */
ALL_MSYMBOLS (objfile, msymbol)
{
QUIT;
@@ -1227,7 +1227,7 @@ print_object_command (char *args, int from_tty)
printf_filtered ("\n");
}
-/* The data structure 'methcalls' is used to detect method calls (thru
+/* The data structure 'methcalls' is used to detect method calls (through
* ObjC runtime lib functions objc_msgSend, objc_msgSendSuper, etc.),
* and ultimately find the method being called.
*/
@@ -887,7 +887,7 @@ store_altivec_register (const struct regcache *regcache, int tid, int regno)
perror_with_name (_("Unable to store AltiVec register"));
}
-/* Assuming TID referrs to an SPE process, set the top halves of TID's
+/* Assuming TID refers to an SPE process, set the top halves of TID's
general-purpose registers and its SPE-specific registers to the
values in EVRREGSET. If we don't support PTRACE_SETEVRREGS, do
nothing.
@@ -125,7 +125,7 @@ static struct target_so_ops powerpc_so_ops;
(gdb) b main
Breakpoint 2 at 0x100006a0: file gdb.base/shmain.c, line 44.
- Examine the instruction (and the immediatly following instruction)
+ Examine the instruction (and the immediately following instruction)
upon which the breakpoint was placed. Note that the PLT entry
for shr1 contains zeros.
@@ -609,7 +609,7 @@ print_address_symbolic (struct gdbarch *gdbarch, CORE_ADDR addr,
address in a symbolic form. NAME can be mangled or not depending
on DO_DEMANGLE (and also on the asm_demangle global variable,
manipulated via ''set print asm-demangle''). Return 0 in case of
- success, when all the info in the OUT paramters is valid. Return 1
+ success, when all the info in the OUT parameters is valid. Return 1
otherwise. */
int
build_address_symbolic (struct gdbarch *gdbarch,
@@ -80,7 +80,7 @@
In order to keep most of the code simple and clean, I have defined
an interface "layer" which hides all these system calls. An ifdef
(NEW_PROC_API) determines which interface we are using, and most or
- all occurrances of this ifdef should be confined to this interface
+ all occurrences of this ifdef should be confined to this interface
layer. */
/* Determine which /proc API we are using: The ioctl API defines
@@ -320,7 +320,7 @@ typedef siginfo_t gdb_siginfo_t;
concerning a /proc process. There should be exactly one procinfo
for each process, and since GDB currently can debug only one
process at a time, that means there should be only one procinfo.
- All of the LWP's of a process can be accessed indirectly thru the
+ All of the LWP's of a process can be accessed indirectly through the
single process procinfo.
However, against the day when GDB may debug more than one process,
@@ -575,7 +575,7 @@ open_procinfo_files (procinfo *pi, int which)
Solaris 2.5 LWP's:
Each LWP has an independent file descriptor, but these
are not obtained via the 'open' system call like the rest:
- instead, they're obtained thru an ioctl call (PIOCOPENLWP)
+ instead, they're obtained through an ioctl call (PIOCOPENLWP)
to the file descriptor of the parent process.
OSF threads:
@@ -628,7 +628,7 @@ open_procinfo_files (procinfo *pi, int which)
/* In this case, there is only one file descriptor for each procinfo
(ie. each process or LWP). In fact, only the file descriptor for
the process can actually be opened by an 'open' system call. The
- ones for the LWPs have to be obtained thru an IOCTL call on the
+ ones for the LWPs have to be obtained through an IOCTL call on the
process's file descriptor.
For convenience, we copy each procinfo's single file descriptor
@@ -1006,7 +1006,7 @@ find_syscall (procinfo *pi, char *name)
The main motivation for this layer is to hide the fact that there
are two very different implementations of the /proc API. Rather
- than have a bunch of #ifdefs all thru the gdb target vector
+ than have a bunch of #ifdefs all through the gdb target vector
functions, we do our best to hide them all in here. */
static long proc_flags (procinfo * pi);
@@ -1398,7 +1398,7 @@ proc_unset_run_on_last_close (procinfo *pi)
}
/* Reset inherit_on_fork flag. If the process forks a child while we
- are registered for events in the parent, then we will NOT recieve
+ are registered for events in the parent, then we will NOT receive
events from the child. Returns non-zero for success, zero for
failure. */
@@ -2502,7 +2502,7 @@ proc_get_LDT_entry (procinfo *pi, int key)
/* Make sure it gets closed again! */
old_chain = make_cleanup_close (fd);
- /* Now 'read' thru the table, find a match and return it. */
+ /* Now 'read' through the table, find a match and return it. */
while (read (fd, ldt_entry, sizeof (struct ssd)) == sizeof (struct ssd))
{
if (ldt_entry->sel == 0 &&
@@ -3459,7 +3459,7 @@ insert_dbx_link_bpt_in_file (int fd, CORE_ADDR ignored)
space in the process. The callback function receives an open file
descriptor for the file corresponding to that mapped address space
(if there is one), and the base address of the mapped space. Quit
- when the callback function returns a nonzero value, or at teh end
+ when the callback function returns a nonzero value, or at the end
of the mappings. Returns the first non-zero return value of the
callback function, or zero. */
@@ -121,7 +121,7 @@ enum prologue_value_kind
understand and maintain. In the approach used here:
- It's easier to see that the analyzer is correct: you just see
- whether the analyzer properly (albiet conservatively) simulates
+ whether the analyzer properly (albeit conservatively) simulates
the effect of each instruction.
- It's easier to extend the analyzer: you can add support for new
@@ -1076,7 +1076,7 @@ remote_fileio_func_system (char *buf)
}
}
- /* Check if system(3) has been explicitely allowed using the
+ /* Check if system(3) has been explicitly allowed using the
`set remote system-call-allowed 1' command. If length is 0,
indicating a NULL parameter to the system call, return zero to
indicate a shell is not available. Otherwise fail with EPERM. */
@@ -914,7 +914,7 @@ static struct target_ops extended_remote_ops;
/* FIXME: cagney/1999-09-23: Even though getpkt was called with
``forever'' still use the normal timeout mechanism. This is
- currently used by the ASYNC code to guarentee that target reads
+ currently used by the ASYNC code to guarantee that target reads
during the initial connect always time-out. Once getpkt has been
modified to return a timeout indication and, in turn
remote_wait()/wait_for_inferior() have gained a timeout parameter
@@ -999,7 +999,7 @@ show_remotebreak (struct ui_file *file, int from_tty,
memory packets to ``host::sizeof long'' bytes - (typically 32
bits). Consequently, for 64 bit targets, the upper 32 bits of an
address was never sent. Since fixing this bug may cause a break in
- some remote targets this variable is principly provided to
+ some remote targets this variable is principally provided to
facilitate backward compatibility. */
static unsigned int remote_address_size;
@@ -1315,7 +1315,7 @@ packet_check_result (const char *buf)
if (buf[0] == 'E'
&& isxdigit (buf[1]) && isxdigit (buf[2])
&& buf[3] == '\0')
- /* "Enn" - definitly an error. */
+ /* "Enn" - definitely an error. */
return PACKET_ERROR;
/* Always treat "E." as an error. This will be used for
@@ -2311,7 +2311,7 @@ remote_thread_name (struct target_ops *ops, struct thread_info *info)
/* WARNING: This threadref data structure comes from the remote O.S.,
libstub protocol encoding, and remote.c. It is not particularly
- changable. */
+ changeable. */
/* Right now, the internal structure is int. We want it to be bigger.
Plan to fix this. */
@@ -2895,9 +2895,9 @@ remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
if (!threadmatch (&rs->echo_nextthread, nextthread))
{
/* FIXME: This is a good reason to drop the packet. */
- /* Possably, there is a duplicate response. */
+ /* Possibly, there is a duplicate response. */
/* Possabilities :
- retransmit immediatly - race conditions
+ retransmit immediately - race conditions
retransmit after timeout - yes
exit
wait for packet, then exit
@@ -4800,7 +4800,7 @@ remote_query_supported (void)
getpkt (&rs->buf, &rs->buf_size, 0);
- /* If an error occured, warn, but do not return - just reset the
+ /* If an error occurred, warn, but do not return - just reset the
buffer to empty and go on to disable features. */
if (packet_ok (rs->buf, &remote_protocol_packets[PACKET_qSupported])
== PACKET_ERROR)
@@ -5100,7 +5100,7 @@ remote_open_1 (const char *name, int from_tty,
/* Start the remote connection. If error() or QUIT, discard this
target (we'd otherwise be in an inconsistent state) and then
- propogate the error on up the exception chain. This ensures that
+ propagate the error on up the exception chain. This ensures that
the caller doesn't stumble along blindly assuming that the
function succeeded. The CLI doesn't have this problem but other
UI's, such as MI do.
@@ -7130,7 +7130,7 @@ Packet: '%s'\n"),
<GDB marks the REMOTE_ASYNC_GET_PENDING_EVENTS_TOKEN>
2.5) <-- (registers reply to step #2.3)
- Eventualy after step #2.5, we return to the event loop, which
+ Eventually after step #2.5, we return to the event loop, which
notices there's an event on the
REMOTE_ASYNC_GET_PENDING_EVENTS_TOKEN event and calls the
associated callback --- the function below. At this point, we're
@@ -8098,7 +8098,7 @@ remote_write_bytes_aux (const char *header, CORE_ADDR memaddr,
strcat (rs->buf, header);
p = rs->buf + strlen (header);
- /* Compute a best guess of the number of bytes actually transfered. */
+ /* Compute a best guess of the number of bytes actually transferred. */
if (packet_format == 'X')
{
/* Best guess at number of bytes that will fit. */
@@ -13683,7 +13683,7 @@ static serial_event_ftype remote_async_serial_handler;
static void
remote_async_serial_handler (struct serial *scb, void *context)
{
- /* Don't propogate error information up to the client. Instead let
+ /* Don't propagate error information up to the client. Instead let
the client find out about the error by querying the target. */
inferior_event_handler (INF_REG_EVENT, NULL);
}
@@ -204,7 +204,7 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
on PPC variants that lack them. */
gdb_assert (ppc_floating_point_unit_p (gdbarch));
- /* The first eight words of ther arguments are passed in registers.
+ /* The first eight words of the arguments are passed in registers.
Copy them appropriately. */
ii = 0;
@@ -577,7 +577,7 @@ rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
}
CATCH (e, RETURN_MASK_ERROR)
{
- /* An error occured during reading. Probably a memory error
+ /* An error occurred during reading. Probably a memory error
due to the section not being loaded yet. This address
cannot be a function descriptor. */
return addr;
@@ -55,7 +55,7 @@ rs6000_lynx178_push_dummy_call (struct gdbarch *gdbarch,
on PPC variants that lack them. */
gdb_assert (ppc_floating_point_unit_p (gdbarch));
- /* The first eight words of ther arguments are passed in registers.
+ /* The first eight words of the arguments are passed in registers.
Copy them appropriately. */
ii = 0;
@@ -1364,7 +1364,7 @@ rs6000_fetch_instruction (struct gdbarch *gdbarch, const CORE_ADDR pc)
return op;
}
-/* GCC generates several well-known sequences of instructions at the begining
+/* GCC generates several well-known sequences of instructions at the beginning
of each function prologue when compiling with -fstack-check. If one of
such sequences starts at START_PC, then return the address of the
instruction immediately past this sequence. Otherwise, return START_PC. */
@@ -6055,7 +6055,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
valid_p &= tdesc_numbered_register (feature, tdesc_data, PPC_XER_REGNUM,
"xer");
- /* Allow alternate names for these registers, to accomodate GDB's
+ /* Allow alternate names for these registers, to accommodate GDB's
historic naming. */
valid_p &= tdesc_numbered_register_choices (feature, tdesc_data,
PPC_MSR_REGNUM, msr_names);
@@ -42,7 +42,7 @@ extern char *rust_crate_for_block (const struct block *block);
/* Create a new slice type. NAME is the name of the type. ELT_TYPE
is the type of the elements of the slice. USIZE_TYPE is the Rust
- "usize" type to use. The new type is allocated whereever ELT_TYPE
+ "usize" type to use. The new type is allocated wherever ELT_TYPE
is allocated. */
struct type *rust_slice_type (const char *name, struct type *elt_type,
struct type *usize_type);
@@ -3324,7 +3324,7 @@ s390_handle_arg (struct s390_arg_state *as, struct value *arg,
for S/390 ELF Application Binary Interface Supplement".
SP is the current stack pointer. We must put arguments, links,
- padding, etc. whereever they belong, and return the new stack
+ padding, etc. wherever they belong, and return the new stack
pointer value.
If STRUCT_RETURN is non-zero, then the function we're calling is
@@ -147,7 +147,7 @@ run_async_handler_and_reschedule (struct serial *scb)
/* FD_EVENT: This is scheduled when the input FIFO is empty (and there
is no pending error). As soon as data arrives, it is read into the
input FIFO and the client notified. The client should then drain
- the FIFO using readchar(). If the FIFO isn't immediatly emptied,
+ the FIFO using readchar(). If the FIFO isn't immediately emptied,
push_event() is used to nag the client until it is. */
static void
@@ -399,7 +399,7 @@ do_ser_base_readchar (struct serial *scb, int timeout)
pre-reads the input into that FIFO. Once that has been emptied,
further data is obtained by polling the input FD using the device
specific readchar() function. Note: reschedule() is called after
- every read. This is because there is no guarentee that the lower
+ every read. This is because there is no guarantee that the lower
level fd_event() poll_event() code (which also calls reschedule())
will be called. */
@@ -655,7 +655,7 @@ dos_get_tty_state (struct serial *scb)
/* We've never heard about this port. We should fail this call,
unless they are asking about one of the 3 standard handles,
in which case we pretend the handle was open by us if it is
- connected to a terminal device. This is beacuse Unix
+ connected to a terminal device. This is because Unix
terminals use the serial interface, so GDB expects the
standard handles to go through here. */
if (scb->fd >= 3 || !isatty (scb->fd))
@@ -563,7 +563,7 @@ console_select_thread (void *arg)
if (event_index != WAIT_OBJECT_0 + 1)
{
- /* Wait must have failed; assume an error has occured, e.g.
+ /* Wait must have failed; assume an error has occurred, e.g.
the handle has been closed. */
SetEvent (state->except_event);
break;
@@ -1132,7 +1132,7 @@ net_windows_select_thread (void *arg)
if (event_index != WAIT_OBJECT_0 + 1)
{
- /* Some error has occured. Assume that this is an error
+ /* Some error has occurred. Assume that this is an error
condition. */
SetEvent (state->base.except_event);
break;
@@ -914,7 +914,7 @@ sh_frame_align (struct gdbarch *ignore, CORE_ADDR sp)
not displace any of the other arguments passed in via registers R4
to R7. */
-/* Helper function to justify value in register according to endianess. */
+/* Helper function to justify value in register according to endianness. */
static const gdb_byte *
sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, int len)
{
@@ -944,7 +944,7 @@ sh_stack_allocsize (int nargs, struct value **args)
}
/* Helper functions for getting the float arguments right. Registers usage
- depends on the ABI and the endianess. The comments should enlighten how
+ depends on the ABI and the endianness. The comments should enlighten how
it's intended to work. */
/* This array stores which of the float arg registers are already in use. */
@@ -1047,7 +1047,7 @@ sh_treat_as_flt_p (struct type *type)
/* Otherwise non-struct types are not treated as float. */
if (TYPE_CODE (type) != TYPE_CODE_STRUCT)
return 0;
- /* Otherwise structs with more than one memeber are not treated as float. */
+ /* Otherwise structs with more than one member are not treated as float. */
if (TYPE_NFIELDS (type) != 1)
return 0;
/* Otherwise if the type of that member is float, the whole type is
@@ -1099,7 +1099,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
/* Now load as many as possible of the first arguments into
registers, and push the rest onto the stack. There are 16 bytes
- in four registers available. Loop thru args from first to last. */
+ in four registers available. Loop through args from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
type = value_type (args[argnum]);
@@ -1236,7 +1236,7 @@ sh_push_dummy_call_nofpu (struct gdbarch *gdbarch,
/* Now load as many as possible of the first arguments into
registers, and push the rest onto the stack. There are 16 bytes
- in four registers available. Loop thru args from first to last. */
+ in four registers available. Loop through args from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
type = value_type (args[argnum]);
@@ -1094,7 +1094,7 @@ sh64_push_dummy_call (struct gdbarch *gdbarch,
/* Now load as many as possible of the first arguments into
registers, and push the rest onto the stack. There are 64 bytes
- in eight registers available. Loop thru args from first to last. */
+ in eight registers available. Loop through args from first to last. */
int_argreg = ARG0_REGNUM;
@@ -22,7 +22,7 @@
to provide access to the Solaris user-mode thread implementation.
Solaris threads are true user-mode threads, which are invoked via
- the thr_* and pthread_* (native and POSIX respectivly) interfaces.
+ the thr_* and pthread_* (native and POSIX respectively) interfaces.
These are mostly implemented in user-space, with all thread context
kept in various structures that live in the user's heap. These
should not be confused with lightweight processes (LWPs), which are
@@ -436,13 +436,13 @@ get_svr4_info (void)
static int match_main (const char *);
/* Read program header TYPE from inferior memory. The header is found
- by scanning the OS auxillary vector.
+ by scanning the OS auxiliary vector.
If TYPE == -1, return the program headers instead of the contents of
one program header.
Return a pointer to allocated memory holding the program header contents,
- or NULL on failure. If sucessful, and unless P_SECT_SIZE is NULL, the
+ or NULL on failure. If successful, and unless P_SECT_SIZE is NULL, the
size of those contents is returned to P_SECT_SIZE. Likewise, the target
architecture size (32-bit or 64-bit) is returned to P_ARCH_SIZE and
the base address of the section is returned in BASE_ADDR. */
@@ -608,7 +608,7 @@ find_program_interpreter (void)
}
}
- /* If we didn't find it, use the target auxillary vector. */
+ /* If we didn't find it, use the target auxiliary vector. */
if (!buf)
buf = read_program_header (PT_INTERP, NULL, NULL, NULL);
@@ -719,7 +719,7 @@ scan_dyntag (const int desired_dyntag, bfd *abfd, CORE_ADDR *ptr,
}
/* Scan for DESIRED_DYNTAG in .dynamic section of the target's main executable,
- found by consulting the OS auxillary vector. If DESIRED_DYNTAG is found, 1
+ found by consulting the OS auxiliary vector. If DESIRED_DYNTAG is found, 1
is returned and the corresponding PTR is set. */
static int
@@ -2404,7 +2404,7 @@ enable_break (struct svr4_info *info, int from_tty)
}
/* If we were not able to find the base address of the loader
- from our so_list, then try using the AT_BASE auxilliary entry. */
+ from our so_list, then try using the AT_BASE auxiliary entry. */
if (!load_addr_found)
if (target_auxv_search (¤t_target, AT_BASE, &load_addr) > 0)
{
@@ -2622,7 +2622,7 @@ read_program_headers_from_bfd (bfd *abfd, int *phdrs_size)
whose e_type member in the ELF header is not ET_DYN. There may
be a time in the future when it is desirable to do relocations
on other types of files as well in which case this condition
- should either be removed or modified to accomodate the new file
+ should either be removed or modified to accommodate the new file
type. - Kevin, Nov 2000. ] */
static int
@@ -2663,8 +2663,8 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
return 0;
}
- /* Verify that the auxilliary vector describes the same file as exec_bfd, by
- comparing their program headers. If the program headers in the auxilliary
+ /* Verify that the auxiliary vector describes the same file as exec_bfd, by
+ comparing their program headers. If the program headers in the auxiliary
vector do not match the program headers in the executable, then we are
looking at a different file than the one used by the kernel - for
instance, "gdb program" connected to "gdbserver :PORT ld.so program". */
@@ -3215,7 +3215,7 @@ svr4_have_link_map_offsets (void)
/* Most OS'es that have SVR4-style ELF dynamic libraries define a
`struct r_debug' and a `struct link_map' that are binary compatible
- with the origional SVR4 implementation. */
+ with the original SVR4 implementation. */
/* Fetch (and possibly build) an appropriate `struct link_map_offsets'
for an ILP32 SVR4 system. */
@@ -147,7 +147,7 @@ show_solib_search_path (struct ui_file *file, int from_tty,
* If IS_SOLIB is non-zero:
* Look in inferior's $LD_LIBRARY_PATH.
*
- * The last check avoids doing this search when targetting remote
+ * The last check avoids doing this search when targeting remote
* machines since a sysroot will almost always be set.
*/
@@ -239,7 +239,7 @@ sparc_sol2_static_transform_name (const char *name)
be incorrect in some places, at least for SPARC. The
globalization prefix is encoded into an N_OPT stab, with the form
"G=<prefix>". The globalization prefix always seems to start
- with a dollar sign '$'; a dot '.' is used as a seperator. So we
+ with a dollar sign '$'; a dot '.' is used as a separator. So we
simply strip everything up until the last dot. */
if (name[0] == '$')
@@ -316,7 +316,7 @@ static const char *sparc32_register_names[] =
#define SPARC32_NUM_REGS ARRAY_SIZE (sparc32_register_names)
/* We provide the aliases %d0..%d30 for the floating registers as
- "psuedo" registers. */
+ "pseudo" registers. */
static const char *sparc32_pseudo_register_names[] =
{
@@ -669,7 +669,7 @@ sparc_alloc_frame_cache (void)
return cache;
}
-/* GCC generates several well-known sequences of instructions at the begining
+/* GCC generates several well-known sequences of instructions at the beginning
of each function prologue when compiling with -fstack-check. If one of
such sequences starts at START_PC, then return the address of the
instruction immediately past this sequence. Otherwise, return START_PC. */
@@ -254,7 +254,7 @@ static const char *sparc64_register_names[] =
#define SPARC64_NUM_REGS ARRAY_SIZE (sparc64_register_names)
/* We provide the aliases %d0..%d62 and %q0..%q60 for the floating
- registers as "psuedo" registers. */
+ registers as "pseudo" registers. */
static const char *sparc64_pseudo_register_names[] =
{
@@ -630,7 +630,7 @@ sparc64_16_byte_align_p (struct type *type)
/* Store floating fields of element ELEMENT of an "parameter array"
that has type TYPE and is stored at BITPOS in VALBUF in the
- apropriate registers of REGCACHE. This function can be called
+ appropriate registers of REGCACHE. This function can be called
recursively and therefore handles floating types in addition to
structures. */
@@ -2323,7 +2323,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
if ((*pp)[0] == 'o' && (*pp)[1] == 'p' && is_cplus_marker ((*pp)[2]))
{
- /* This is a completely wierd case. In order to stuff in the
+ /* This is a completely weird case. In order to stuff in the
names that might contain colons (the usual name delimiter),
Mike Tiemann defined a different name format which is
signalled if the identifier is "op$". In that case, the
@@ -2459,7 +2459,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
int nbits;
/* virtual member function, followed by index.
The sign bit is set to distinguish pointers-to-methods
- from virtual function indicies. Since the array is
+ from virtual function indices. Since the array is
in words, the quantity must be shifted left by 1
on 16 bit machine, and by 2 on 32 bit machine, forcing
the sign bit out, and usable as a valid index into
@@ -31,7 +31,7 @@ struct objfile;
#endif
/* Hash table of global symbols whose values are not known yet.
- They are chained thru the SYMBOL_VALUE_CHAIN, since we don't
+ They are chained through the SYMBOL_VALUE_CHAIN, since we don't
have the correct data for that slot yet.
The use of the LOC_BLOCK code in this chain is nonstandard--
@@ -218,7 +218,7 @@ print_frame_nameless_args (struct frame_info *frame, long start, int num,
read in.
Errors are printed as if they would be the parameter value. Use zeroed ARG
- iff it should not be printed accoring to user settings. */
+ iff it should not be printed according to user settings. */
static void
print_frame_arg (const struct frame_arg *arg)
@@ -211,7 +211,7 @@ union ia64_ireg
/* Predicate registers: There are 64 of these 1-bit registers. We
define a single register which is used to communicate these values
to/from the target. We will somehow contrive to make it appear
- that IA64_PR0_REGNUM thru IA64_PR63_REGNUM hold the actual values. */
+ that IA64_PR0_REGNUM through IA64_PR63_REGNUM hold the actual values. */
#define IA64_PR_REGNUM 330
/* Instruction pointer: 64 bits wide. */
@@ -312,7 +312,7 @@ term_raw_write (const char *str, unsigned int len)
LIB$SIGNAL (status);
}
-/* Flush ther term buffer. */
+/* Flush the term buffer. */
static void
term_flush (void)
@@ -409,7 +409,7 @@ handle_exception (int exceptionVector)
hex2mem (ptr, (unsigned char *) ®isters[regno], 4, 0);
/*
* Since we just changed a single CPU register, let's
- * make sure to keep the several stack pointers consistant.
+ * make sure to keep the several stack pointers consistent.
*/
stackmode = registers[PSW] & 0x80;
if (regno == R15) /* stack pointer changed */
@@ -975,7 +975,7 @@ isShortBranch (unsigned char *instr)
if (instr0 == 0x1E || instr0 == 0x1F) /* JL or JMP */
if ((instr[1] & 0xF0) == 0xC0)
- return 2; /* jump thru a register */
+ return 2; /* jump through a register */
if (instr0 == 0x7C || instr0 == 0x7D || /* BC, BNC, BL, BRA */
instr0 == 0x7E || instr0 == 0x7F)
@@ -1088,7 +1088,7 @@ branchDestination (unsigned char *instr, int branchCode)
case 1: /* RTE */
return registers[BPC] & ~3; /* pop BPC into PC */
case 2: /* JL or JMP */
- return registers[instr[1] & 0x0F] & ~3; /* jump thru a register */
+ return registers[instr[1] & 0x0F] & ~3; /* jump through a register */
case 3: /* BC, BNC, BL, BRA (short, 8-bit relative offset) */
return (((int) instr) & ~3) + ((char) instr[1] << 2);
case 4: /* BC, BNC, BL, BRA (long, 24-bit relative offset) */
@@ -1261,7 +1261,7 @@ struct PSWreg
/* Upon entry the value for LR to save has been pushed.
We unpush that so that the value for the stack pointer saved is correct.
Upon entry, all other registers are assumed to have not been modified
- since the interrupt/trap occured. */
+ since the interrupt/trap occurred. */
asm ("\n\
stash_registers:\n\
@@ -486,7 +486,7 @@ _returnFromException (Frame * frame)
frame = lastFrame;
frame->frameSize = 4;
frame->format = 0;
- frame->fsaveHeader = -1; /* restore regs, but we dont have fsave info */
+ frame->fsaveHeader = -1; /* restore regs, but we don't have fsave info */
}
#if !defined (mc68020) && !defined (mc68332)
@@ -372,7 +372,7 @@ init_objfile_sect_indices (struct objfile *objfile)
/* This is where things get really weird... We MUST have valid
indices for the various sect_index_* members or gdb will abort.
So if for example, there is no ".text" section, we have to
- accomodate that. First, check for a file with the standard
+ accommodate that. First, check for a file with the standard
one or two segments. */
symfile_find_segment_sections (objfile);
@@ -3117,7 +3117,7 @@ section_is_mapped (struct obj_section *osect)
if (osect->ovly_mapped == -1)
gdbarch_overlay_update (gdbarch, osect);
}
- /* fall thru to manual case */
+ /* fallthru to manual case */
case ovly_on: /* overlay debugging manual */
return osect->ovly_mapped == 1;
}
@@ -485,7 +485,7 @@ iterate_over_symtabs (const char *name,
}
}
- /* Same search rules as above apply here, but now we look thru the
+ /* Same search rules as above apply here, but now we look through the
psymtabs. */
ALL_OBJFILES (objfile)
@@ -3508,7 +3508,7 @@ find_function_start_sal (struct symbol *sym, int funfirstline)
}
/* We always should have a line for the function start address.
- If we don't, something is odd. Create a plain SAL refering
+ If we don't, something is odd. Create a plain SAL referring
just the PC and hope that skip_prologue_sal (if requested)
can find a line number for after the prologue. */
if (sal.pc < BLOCK_START (SYMBOL_BLOCK_VALUE (sym)))
@@ -151,7 +151,7 @@ static int show_memory_breakpoints = 0;
/* These globals control whether GDB attempts to perform these
operations; they are useful for targets that need to prevent
- inadvertant disruption, such as in non-stop mode. */
+ inadvertent disruption, such as in non-stop mode. */
int may_write_registers = 1;
@@ -1435,7 +1435,7 @@ target_xfer_partial (struct target_ops *ops,
If an error occurs, no guarantee is made about the contents of the data at
MYADDR. In particular, the caller should not depend upon partial reads
filling the buffer with good data. There is no way for the caller to know
- how much good data might have been transfered anyway. Callers that can
+ how much good data might have been transferred anyway. Callers that can
deal with partial reads should call target_read (which will retry until
it makes no progress, and then return how much was transferred). */
@@ -126,7 +126,7 @@ enum inferior_event_type
INF_EXEC_COMPLETE,
};
-/* Target objects which can be transfered using target_read,
+/* Target objects which can be transferred using target_read,
target_write, et cetera. */
enum target_object
@@ -150,7 +150,7 @@ enum target_object
TARGET_OBJECT_CODE_MEMORY,
/* Kernel Unwind Table. See "ia64-tdep.c". */
TARGET_OBJECT_UNWIND_TABLE,
- /* Transfer auxilliary vector. */
+ /* Transfer auxiliary vector. */
TARGET_OBJECT_AUXV,
/* StackGhost cookie. See "sparc-tdep.c". */
TARGET_OBJECT_WCOOKIE,
@@ -171,7 +171,7 @@ enum target_object
/* Currently loaded libraries specific to AIX systems, in XML format. */
TARGET_OBJECT_LIBRARIES_AIX,
/* Get OS specific data. The ANNEX specifies the type (running
- processes, etc.). The data being transfered is expected to follow
+ processes, etc.). The data being transferred is expected to follow
the DTD specified in features/osdata.dtd. */
TARGET_OBJECT_OSDATA,
/* Extra signal info. Usually the contents of `siginfo_t' on unix
@@ -187,7 +187,7 @@ enum target_object
/* The HP-UX shared library linkage pointer. ANNEX should be a string
image of the code address whose linkage pointer we are looking for.
- The size of the data transfered is always 8 bytes (the size of an
+ The size of the data transferred is always 8 bytes (the size of an
address on ia64). */
TARGET_OBJECT_HPUX_SOLIB_GOT,
/* Traceframe info, in XML format. */
@@ -725,7 +725,7 @@ struct target_ops
transferring if desired. This is handled in target.c.
The interface does not support a "retry" mechanism. Instead it
- assumes that at least one byte will be transfered on each
+ assumes that at least one byte will be transferred on each
successful call.
NOTE: cagney/2003-10-17: The current interface can lead to
@@ -1460,7 +1460,7 @@ void target_flash_done (void);
/* Describes a request for a memory write operation. */
struct memory_write_request
{
- /* Begining address that must be written. */
+ /* Beginning address that must be written. */
ULONGEST begin;
/* Past-the-end address. */
ULONGEST end;
@@ -76,7 +76,7 @@ enum target_waitkind
should be resuming the inferior. */
TARGET_WAITKIND_SPURIOUS,
- /* An event has occured, but we should wait again.
+ /* An event has occurred, but we should wait again.
Remote_async_wait() returns this when there is an event
on the inferior, but the rest of the world is not interested in
it. The inferior has not stopped, but has just sent some output
@@ -203,8 +203,8 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
while (size > 0)
{
- /* NB: Transfer 4 byte (long) quantites, problems occure
- when only two bytes are transfered */
+ /* NB: Transfer 4 byte (long) quantites, problems occur
+ when only two bytes are transferred */
DMAP = dmap_src;
tmp = *s;
DMAP = dmap_dst;
@@ -203,8 +203,8 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
while (size > 0)
{
- /* NB: Transfer 4 byte (long) quantites, problems occure
- when only two bytes are transfered */
+ /* NB: Transfer 4 byte (long) quantites, problems occur
+ when only two bytes are transferred */
DMAP = dmap_src;
tmp = *s;
DMAP = dmap_dst;
@@ -220,8 +220,8 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
while (size > 0)
{
- /* NB: Transfer 4 byte (long) quantites, problems occure
- when only two bytes are transfered */
+ /* NB: Transfer 4 byte (long) quantites, problems occur
+ when only two bytes are transferred */
DMAP = dmap_src;
tmp = *s;
DMAP = dmap_dst;
@@ -111,7 +111,7 @@ autovars (int bcd, int abc)
int i96 = useit (96), i97 = useit (97), i98 = useit (98);
int i99 = useit (99);
- /* Use all 100 of the local variables to derail agressive optimizers. */
+ /* Use all 100 of the local variables to derail aggressive optimizers. */
useit ( i0); useit ( i1); useit ( i2); useit ( i3); useit ( i4);
useit ( i5); useit ( i6); useit ( i7); useit ( i8); useit ( i9);
@@ -59,7 +59,7 @@ handler (int sig)
while (1)
{
/* Wait until a signal has become pending, that way when this
- handler returns it will be immediatly delivered leading to
+ handler returns it will be immediately delivered leading to
back-to-back signals. */
sigset_t set;
sigemptyset (&set);
@@ -45,7 +45,7 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -]
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four
- numbers seperated by '.'s: currently "7.0.0.0" */
+ numbers separated by '.'s: currently "7.0.0.0" */
set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
@@ -33,7 +33,7 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -]
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four
- numbers seperated by '.'s: currently "7.0.0.0" */
+ numbers separated by '.'s: currently "7.0.0.0" */
set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
@@ -1735,8 +1735,8 @@ tp_array_compar (const void *ap_voidp, const void *bp_voidp)
}
/* Apply a GDB command to a list of threads. List syntax is a whitespace
- seperated list of numbers, or ranges, or the keyword `all'. Ranges consist
- of two numbers seperated by a hyphen. Examples:
+ separated list of numbers, or ranges, or the keyword `all'. Ranges consist
+ of two numbers separated by a hyphen. Examples:
thread apply 1 2 7 4 backtrace Apply backtrace cmd to threads 1,2,7,4
thread apply 2-7 9 p foo(1) Apply p foo(1) cmd to threads 2->7 & 9
@@ -47,7 +47,7 @@
/* Mapping between the general-purpose registers in `struct user'
format and GDB's register array layout. Note that we map the
- first 56 registers (0 thru 55) one-to-one. GDB maps the pc to
+ first 56 registers (0 through 55) one-to-one. GDB maps the pc to
slot 64, but ptrace returns it in slot 56. */
static const int regmap[] =
{
@@ -62,7 +62,7 @@ static const int regmap[] =
56, 58
};
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
@@ -95,7 +95,7 @@ fill_gregset (const struct regcache* regcache,
regcache_raw_collect (regcache, i, regp + regmap[i]);
}
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register array with the floating-point register values in
*FPREGSETP. */
@@ -744,7 +744,7 @@ validate_actionline (const char *line, struct breakpoint *b)
p = strchr (p, ',');
continue;
}
- /* else fall thru, treat p as an expression and parse it! */
+ /* else fall through, treat p as an expression and parse it! */
}
tmp_p = p;
for (loc = t->base.loc; loc; loc = loc->next)
@@ -2234,7 +2234,7 @@ tfind_1 (enum trace_find_type type, int num,
if you're in a user-defined command or especially in a
loop, then you need a way to detect that the command
failed WITHOUT aborting. This allows you to write
- scripts that search thru the trace buffer until the end,
+ scripts that search through the trace buffer until the end,
and then continue on to do something else. */
if (from_tty)
@@ -198,7 +198,7 @@ tui_file_get_strbuf (struct ui_file *file)
}
/* Adjust the length of the buffer by the amount necessary to
- accomodate appending a string of length N to the buffer
+ accommodate appending a string of length N to the buffer
contents. */
void
tui_file_adjust_strbuf (int n, struct ui_file *file)
@@ -594,7 +594,7 @@ tui_scroll_forward (struct tui_win_info *win_to_scroll,
_num_to_scroll = win_to_scroll->generic.height - 3;
/* If we are scrolling the source or disassembly window, do a
- "psuedo" scroll since not all of the source is in memory,
+ "pseudo" scroll since not all of the source is in memory,
only what is in the viewport. If win_to_scroll is the
command window do nothing since the term should handle
it. */
@@ -619,7 +619,7 @@ tui_scroll_backward (struct tui_win_info *win_to_scroll,
_num_to_scroll = win_to_scroll->generic.height - 3;
/* If we are scrolling the source or disassembly window, do a
- "psuedo" scroll since not all of the source is in memory,
+ "pseudo" scroll since not all of the source is in memory,
only what is in the viewport. If win_to_scroll is the
command window do nothing since the term should handle
it. */
@@ -645,7 +645,7 @@ tui_scroll_left (struct tui_win_info *win_to_scroll,
_num_to_scroll = 1;
/* If we are scrolling the source or disassembly window, do a
- "psuedo" scroll since not all of the source is in memory,
+ "pseudo" scroll since not all of the source is in memory,
only what is in the viewport. If win_to_scroll is the command
window do nothing since the term should handle it. */
if (win_to_scroll == TUI_SRC_WIN
@@ -668,7 +668,7 @@ tui_scroll_right (struct tui_win_info *win_to_scroll,
_num_to_scroll = 1;
/* If we are scrolling the source or disassembly window, do a
- "psuedo" scroll since not all of the source is in memory,
+ "pseudo" scroll since not all of the source is in memory,
only what is in the viewport. If win_to_scroll is the command
window do nothing since the term should handle it. */
if (win_to_scroll == TUI_SRC_WIN
@@ -1311,7 +1311,7 @@ tui_adjust_win_heights (struct tui_win_info *primary_win_info,
second_win = (tui_source_windows ())->list[0];
}
if (primary_win_info == TUI_CMD_WIN)
- { /* Split the change in height accross the 1st & 2nd
+ { /* Split the change in height across the 1st & 2nd
windows, adjusting them as well. */
/* Subtract the locator. */
int first_split_diff = diff / 2;
@@ -1407,7 +1407,7 @@ tui_adjust_win_heights (struct tui_win_info *primary_win_info,
}
-/* Function make the target window (and auxillary windows associated
+/* Function make the target window (and auxiliary windows associated
with the targer) invisible, and set the new height and
location. */
static void
@@ -1426,7 +1426,7 @@ make_invisible_and_set_new_height (struct tui_win_info *win_info,
if (win_info != TUI_CMD_WIN)
win_info->generic.viewport_height--;
- /* Now deal with the auxillary windows associated with win_info. */
+ /* Now deal with the auxiliary windows associated with win_info. */
switch (win_info->generic.type)
{
case SRC_WIN:
@@ -75,7 +75,7 @@ tui_delete_win (WINDOW *window)
}
-/* Draw a border arround the window. */
+/* Draw a border around the window. */
static void
box_win (struct tui_gen_win_info *win_info,
int highlight_flag)
@@ -42,7 +42,7 @@ enum tui_win_type
CMD_WIN,
/* This must ALWAYS be AFTER the major windows last. */
MAX_MAJOR_WINDOWS,
- /* Auxillary windows. */
+ /* Auxiliary windows. */
LOCATOR_WIN,
EXEC_INFO_WIN,
DATA_ITEM_WIN,
@@ -3201,7 +3201,7 @@ make_cleanup_free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec)
return make_cleanup (do_free_char_ptr_vec, char_ptr_vec);
}
-/* Substitute all occurences of string FROM by string TO in *STRINGP. *STRINGP
+/* Substitute all occurrences of string FROM by string TO in *STRINGP. *STRINGP
must come from xrealloc-compatible allocator and it may be updated. FROM
needs to be delimited by IS_DIR_SEPARATOR or DIRNAME_SEPARATOR (or be
located at the start or end of *STRINGP. */
@@ -200,7 +200,7 @@ enum
E_R149_REGNUM,
E_NUM_OF_V850E2_REGS,
- /* v850e3v5 system registers, selID 1 thru 7. */
+ /* v850e3v5 system registers, selID 1 through 7. */
E_SELID_1_R0_REGNUM = E_NUM_OF_V850E2_REGS,
E_SELID_1_R31_REGNUM = E_SELID_1_R0_REGNUM + 31,
@@ -1044,7 +1044,7 @@ v850_push_dummy_call (struct gdbarch *gdbarch,
/* Now load as many as possible of the first arguments into
registers, and push the rest onto the stack. There are 16 bytes
- in four registers available. Loop thru args from first to last. */
+ in four registers available. Loop through args from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
int len;
@@ -927,7 +927,7 @@ get_value_at (struct type *type, CORE_ADDR addr, int lazy)
/* Return a value with type TYPE located at ADDR.
Call value_at only if the data needs to be fetched immediately;
- if we can be 'lazy' and defer the fetch, perhaps indefinately, call
+ if we can be 'lazy' and defer the fetch, perhaps indefinitely, call
value_at_lazy instead. value_at_lazy simply records the address of
the data and sets the lazy-evaluation-required flag. The lazy flag
is tested in the value_contents macro, which is used if and when
@@ -1266,7 +1266,7 @@ value_assign (struct value *toval, struct value *fromval)
/* We copy over the enclosing type and pointed-to offset from FROMVAL
in the case of pointer types. For object types, the enclosing type
- and embedded offset must *not* be copied: the target object refered
+ and embedded offset must *not* be copied: the target object referred
to by TOVAL retains its original dynamic type after assignment. */
if (TYPE_CODE (type) == TYPE_CODE_PTR)
{
@@ -1413,7 +1413,7 @@ value_coerce_to_target (struct value *val)
nonzero lower bound.
FIXME: A previous comment here indicated that this routine should
- be substracting the array's lower bound. It's not clear to me that
+ be subtracting the array's lower bound. It's not clear to me that
this is correct. Given an array subscripting operation, it would
certainly work to do the adjustment here, essentially computing:
@@ -144,7 +144,7 @@ static GetConsoleFontSize_ftype *GetConsoleFontSize;
static int have_saved_context; /* True if we've saved context from a
cygwin signal. */
-static CONTEXT saved_context; /* Containes the saved context from a
+static CONTEXT saved_context; /* Contains the saved context from a
cygwin signal. */
/* If we're not using the old Cygwin header file set, define the
@@ -575,7 +575,7 @@ xtensa_pseudo_register_read (struct gdbarch *gdbarch,
if (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch))
return regcache_raw_read (regcache, regnum, buffer);
- /* We have to find out how to deal with priveleged registers.
+ /* We have to find out how to deal with privileged registers.
Let's treat them as pseudo-registers, but we cannot read/write them. */
else if (regnum < gdbarch_tdep (gdbarch)->a0_base)
@@ -668,7 +668,7 @@ xtensa_pseudo_register_write (struct gdbarch *gdbarch,
if (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch))
regcache_raw_write (regcache, regnum, buffer);
- /* We have to find out how to deal with priveleged registers.
+ /* We have to find out how to deal with privileged registers.
Let's treat them as pseudo-registers, but we cannot read/write them. */
else if (regnum < gdbarch_tdep (gdbarch)->a0_base)
@@ -3162,7 +3162,7 @@ xtensa_derive_tdep (struct gdbarch_tdep *tdep)
max_size = rmap->byte_size;
if (rmap->mask != 0 && tdep->num_regs == 0)
tdep->num_regs = n;
- /* Find out out how to deal with priveleged registers.
+ /* Find out out how to deal with privileged registers.
if ((rmap->flags & XTENSA_REGISTER_FLAGS_PRIVILEGED) != 0
&& tdep->num_nopriv_regs == 0)