This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[committed][gdb] Fix more typos in comments
- From: Tom de Vries <tdevries at suse dot de>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Fri, 18 Oct 2019 02:49:00 +0200
- Subject: [committed][gdb] Fix more typos in comments
Hi,
Fix typos in comments. NFC.
Tested on x86_64-linux.
Committed to trunk.
Thanks,
- Tom
[gdb] Fix more typos in comments
gdb/ChangeLog:
2019-10-18 Tom de Vries <tdevries@suse.de>
* aarch64-tdep.c: Fix typos in comments.
* ada-lang.c: Same.
* ada-tasks.c: Same.
* alpha-tdep.c: Same.
* alpha-tdep.h: Same.
* amd64-nat.c: Same.
* amd64-windows-tdep.c: Same.
* arc-tdep.c: Same.
* arc-tdep.h: Same.
* arch-utils.c: Same.
* arm-nbsd-tdep.c: Same.
* arm-tdep.c: Same.
* ax-gdb.c: Same.
* blockframe.c: Same.
* btrace.c: Same.
* c-varobj.c: Same.
* coff-pe-read.c: Same.
* coffread.c: Same.
* cris-tdep.c: Same.
* darwin-nat.c: Same.
* dbxread.c: Same.
* dcache.c: Same.
* disasm.c: Same.
* dtrace-probe.c: Same.
* dwarf-index-write.c: Same.
* dwarf2-frame-tailcall.c: Same.
* dwarf2-frame.c: Same.
* dwarf2read.c: Same.
* eval.c: Same.
* exceptions.c: Same.
* fbsd-tdep.c: Same.
* findvar.c: Same.
* frame.c: Same.
* frv-tdep.c: Same.
* gnu-v3-abi.c: Same.
* go32-nat.c: Same.
* h8300-tdep.c: Same.
* hppa-tdep.c: Same.
* i386-linux-tdep.c: Same.
* i386-tdep.c: Same.
* ia64-libunwind-tdep.c: Same.
* ia64-tdep.c: Same.
* infcmd.c: Same.
* infrun.c: Same.
* linespec.c: Same.
* linux-nat.c: Same.
* linux-thread-db.c: Same.
* machoread.c: Same.
* mdebugread.c: Same.
* mep-tdep.c: Same.
* mn10300-tdep.c: Same.
* namespace.c: Same.
* objfiles.c: Same.
* opencl-lang.c: Same.
* or1k-tdep.c: Same.
* osabi.c: Same.
* ppc-linux-nat.c: Same.
* ppc-linux-tdep.c: Same.
* ppc-sysv-tdep.c: Same.
* printcmd.c: Same.
* procfs.c: Same.
* record-btrace.c: Same.
* record-full.c: Same.
* remote-fileio.c: Same.
* remote.c: Same.
* rs6000-tdep.c: Same.
* s12z-tdep.c: Same.
* score-tdep.c: Same.
* ser-base.c: Same.
* ser-go32.c: Same.
* skip.c: Same.
* sol-thread.c: Same.
* solib-svr4.c: Same.
* solib.c: Same.
* source.c: Same.
* sparc-nat.c: Same.
* sparc-sol2-tdep.c: Same.
* sparc-tdep.c: Same.
* sparc64-tdep.c: Same.
* stabsread.c: Same.
* stack.c: Same.
* symfile.c: Same.
* symtab.c: Same.
* target-descriptions.c: Same.
* target-float.c: Same.
* thread.c: Same.
* utils.c: Same.
* valops.c: Same.
* valprint.c: Same.
* value.c: Same.
* varobj.c: Same.
* windows-nat.c: Same.
* xcoffread.c: Same.
* xstormy16-tdep.c: Same.
* xtensa-tdep.c: Same.
Change-Id: I5175f1b107bfa4e1cdd4a3361ccb4739e53c75c4
---
gdb/aarch64-tdep.c | 2 +-
gdb/ada-lang.c | 12 ++++++------
gdb/ada-tasks.c | 4 ++--
gdb/alpha-tdep.c | 4 ++--
gdb/alpha-tdep.h | 2 +-
gdb/amd64-nat.c | 2 +-
gdb/amd64-windows-tdep.c | 2 +-
gdb/arc-tdep.c | 8 ++++----
gdb/arc-tdep.h | 2 +-
gdb/arch-utils.c | 4 ++--
gdb/arm-nbsd-tdep.c | 2 +-
gdb/arm-tdep.c | 14 +++++++-------
gdb/ax-gdb.c | 2 +-
gdb/blockframe.c | 2 +-
gdb/btrace.c | 2 +-
gdb/c-varobj.c | 2 +-
gdb/coff-pe-read.c | 2 +-
gdb/coffread.c | 2 +-
gdb/cris-tdep.c | 2 +-
gdb/darwin-nat.c | 2 +-
gdb/dbxread.c | 4 ++--
gdb/dcache.c | 2 +-
gdb/disasm.c | 4 ++--
gdb/dtrace-probe.c | 2 +-
gdb/dwarf-index-write.c | 4 ++--
gdb/dwarf2-frame-tailcall.c | 2 +-
gdb/dwarf2-frame.c | 2 +-
gdb/dwarf2read.c | 12 ++++++------
gdb/eval.c | 4 ++--
gdb/exceptions.c | 2 +-
gdb/fbsd-tdep.c | 2 +-
gdb/findvar.c | 2 +-
gdb/frame.c | 2 +-
gdb/frv-tdep.c | 2 +-
gdb/gnu-v3-abi.c | 2 +-
gdb/go32-nat.c | 4 ++--
gdb/h8300-tdep.c | 2 +-
gdb/hppa-tdep.c | 12 ++++++------
gdb/i386-linux-tdep.c | 2 +-
gdb/i386-tdep.c | 2 +-
gdb/ia64-libunwind-tdep.c | 2 +-
gdb/ia64-tdep.c | 2 +-
gdb/infcmd.c | 4 ++--
gdb/infrun.c | 6 +++---
gdb/linespec.c | 2 +-
gdb/linux-nat.c | 2 +-
gdb/linux-thread-db.c | 2 +-
gdb/machoread.c | 2 +-
gdb/mdebugread.c | 8 ++++----
gdb/mep-tdep.c | 2 +-
gdb/mn10300-tdep.c | 2 +-
gdb/namespace.c | 2 +-
gdb/objfiles.c | 2 +-
gdb/opencl-lang.c | 2 +-
gdb/or1k-tdep.c | 2 +-
gdb/osabi.c | 2 +-
gdb/ppc-linux-nat.c | 2 +-
gdb/ppc-linux-tdep.c | 4 ++--
gdb/ppc-sysv-tdep.c | 2 +-
gdb/printcmd.c | 2 +-
gdb/procfs.c | 6 +++---
gdb/record-btrace.c | 2 +-
gdb/record-full.c | 2 +-
gdb/remote-fileio.c | 2 +-
gdb/remote.c | 6 +++---
gdb/rs6000-tdep.c | 2 +-
gdb/s12z-tdep.c | 4 ++--
gdb/score-tdep.c | 2 +-
gdb/ser-base.c | 4 ++--
gdb/ser-go32.c | 2 +-
gdb/skip.c | 2 +-
gdb/sol-thread.c | 2 +-
gdb/solib-svr4.c | 4 ++--
gdb/solib.c | 2 +-
gdb/source.c | 2 +-
gdb/sparc-nat.c | 2 +-
gdb/sparc-sol2-tdep.c | 2 +-
gdb/sparc-tdep.c | 2 +-
gdb/sparc64-tdep.c | 2 +-
gdb/stabsread.c | 2 +-
gdb/stack.c | 4 ++--
gdb/symfile.c | 6 +++---
gdb/symtab.c | 2 +-
gdb/target-descriptions.c | 2 +-
gdb/target-float.c | 2 +-
gdb/thread.c | 4 ++--
gdb/utils.c | 4 ++--
gdb/valops.c | 4 ++--
gdb/valprint.c | 6 +++---
gdb/value.c | 2 +-
gdb/varobj.c | 2 +-
gdb/windows-nat.c | 4 ++--
gdb/xcoffread.c | 4 ++--
gdb/xstormy16-tdep.c | 2 +-
gdb/xtensa-tdep.c | 14 +++++++-------
95 files changed, 157 insertions(+), 157 deletions(-)
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index d1ee78de094..2e428ca4924 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -3550,7 +3550,7 @@ aarch64_record_data_proc_reg (insn_decode_record *aarch64_insn_r)
}
else if (insn_bits21_23 == 0x04 || insn_bits21_23 == 0x06)
{
- /* CConditional select. */
+ /* Conditional select. */
/* Data-processing (2 source). */
/* Data-processing (1 source). */
record_buf[0] = reg_rd;
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index a2ae89dd98c..6175219b4b3 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -825,7 +825,7 @@ get_base_type (struct type *type)
/* Return a decoded version of the given VALUE. This means returning
a value whose type is obtained by applying all the GNAT-specific
- encondings, making the resulting type a static but standard description
+ encodings, making the resulting type a static but standard description
of the initial type. */
struct value *
@@ -1459,7 +1459,7 @@ ada_sniff_from_mangled_name (const char *mangled, char **out)
Otherwise, do nothing. This function also does nothing if
INDEX_DESC_TYPE is NULL.
- The GNAT encoding used to describle the array index type evolved a bit.
+ The GNAT encoding used to describe the array index type evolved a bit.
Initially, the information would be provided through the name of each
field of the structure type only, while the type of these fields was
described as unspecified and irrelevant. The debugger was then expected
@@ -8968,7 +8968,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
@@ -9320,7 +9320,7 @@ ada_get_base_type (struct type *raw_type)
if (TYPE_CODE (TYPE_FIELD_TYPE (real_type_namer, 0)) != TYPE_CODE_REF)
{
/* This is an older encoding form where the base type needs to be
- looked up by name. We prefer the newer enconding because it is
+ looked up by name. We prefer the newer encoding because it is
more efficient. */
raw_real_type = ada_find_any_type (TYPE_FIELD_NAME (real_type_namer, 0));
if (raw_real_type == NULL)
@@ -12046,7 +12046,7 @@ is_known_support_routine (struct frame_info *frame)
if (access (fullname, R_OK) != 0)
return 1;
- /* Check the unit filename againt the Ada runtime file naming.
+ /* Check the unit filename against the Ada runtime file naming.
We also check the name of the objfile against the name of some
known system libraries that sometimes come with debugging info
too. */
@@ -12899,7 +12899,7 @@ ada_exception_catchpoint_cond_string (const char *excep_string,
exception constraint_error" is rewritten into "catch exception
standard.constraint_error".
- If an exception named contraint_error is defined in another package of
+ If an exception named constraint_error is defined in another package of
the inferior program, then the only way to specify this exception as a
breakpoint condition is to use its fully-qualified named:
e.g. my_package.constraint_error. */
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index e4a52976dcb..e5504e9bd3d 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -604,7 +604,7 @@ ptid_from_atcb_common (struct value *common_value)
}
/* Read the ATCB data of a given task given its TASK_ID (which is in practice
- the address of its assocated ATCB record), and store the result inside
+ the address of its associated ATCB record), and store the result inside
TASK_INFO. */
static void
@@ -744,7 +744,7 @@ read_atcb (CORE_ADDR task_id, struct ada_task_info *task_info)
called_task_fieldno));
}
- /* If the ATCB cotnains some information about RV callers, then
+ /* If the ATCB contains some information about RV callers, then
compute the "caller_task". Otherwise, leave it as zero. */
if (pspace_data->atcb_fieldno.call >= 0)
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index af9b9b97407..795f0367525 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -994,11 +994,11 @@ 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
- sigcontext_addr handler or pc_in_sigtramp hander. */
+ sigcontext_addr handler or pc_in_sigtramp handler. */
if (gdbarch_tdep (gdbarch)->sigcontext_addr == NULL)
return 0;
if (gdbarch_tdep (gdbarch)->pc_in_sigtramp == NULL)
diff --git a/gdb/alpha-tdep.h b/gdb/alpha-tdep.h
index beec9b2a53b..894d7d3dd76 100644
--- a/gdb/alpha-tdep.h
+++ b/gdb/alpha-tdep.h
@@ -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);
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c
index 3dcac73d88a..a65edc267ad 100644
--- a/gdb/amd64-nat.c
+++ b/gdb/amd64-nat.c
@@ -30,7 +30,7 @@
the register number as used by GDB and the register set used by the
host to represent the general-purpose registers; one for 32-bit
code and one for 64-bit code. The mappings are specified by the
- follwing variables and consist of an array of offsets within the
+ following variables and consist of an array of offsets within the
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
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index 3eb1f1493cd..61ac2a5c3ef 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -1214,7 +1214,7 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
/* The dwarf2 unwinder (appended very early by i386_gdbarch_init) is
preferred over the SEH one. The reasons are:
- - binaries without SEH but with dwarf2 debug info are correcly handled
+ - binaries without SEH but with dwarf2 debug info are correctly handled
(although they aren't ABI compliant, gcc before 4.7 didn't emit SEH
info).
- dwarf3 DW_OP_call_frame_cfa is correctly handled (it can only be
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 108b6717f7d..7f44702d6b1 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -1,4 +1,4 @@
-/* Target dependent code for ARC arhitecture, for GDB.
+/* Target dependent code for ARC architecture, for GDB.
Copyright 2005-2019 Free Software Foundation, Inc.
Contributed by Synopsys Inc.
@@ -1203,7 +1203,7 @@ arc_disassemble_info (struct gdbarch *gdbarch)
If CACHE is not NULL, then it will be filled with information about saved
registers.
- There are several variations of prologue which GDB may encouter. "Full"
+ There are several variations of prologue which GDB may encounter. "Full"
prologue looks like this:
sub sp,sp,<imm> ; Space for variadic arguments.
@@ -1224,7 +1224,7 @@ arc_disassemble_info (struct gdbarch *gdbarch)
store, that doesn't update SP. Like this:
- sub sp,sp,8 ; Create space for calee-saved registers.
+ sub sp,sp,8 ; Create space for callee-saved registers.
st r13,[sp,4] ; Store callee saved registers (up to R26/GP).
st r14,[sp,0]
@@ -1391,7 +1391,7 @@ arc_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
int
arc_delayed_print_insn (bfd_vma addr, struct disassemble_info *info)
{
- /* Standard BFD "machine number" field allows libocodes disassembler to
+ /* Standard BFD "machine number" field allows libopcodes disassembler to
distinguish ARC 600, 700 and v2 cores, however v2 encompasses both ARC EM
and HS, which have some difference between. There are two ways to specify
what is the target core:
diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h
index 1c195cb2c31..02f34dc1e6d 100644
--- a/gdb/arc-tdep.h
+++ b/gdb/arc-tdep.h
@@ -1,4 +1,4 @@
-/* Target dependent code for ARC arhitecture, for GDB.
+/* Target dependent code for ARC architecture, for GDB.
Copyright 2005-2019 Free Software Foundation, Inc.
Contributed by Synopsys Inc.
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 571646e4c8d..2129c3b2c38 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -69,7 +69,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
+ behaviour. The default should be one2one_register_sim_regno
(below). */
if (gdbarch_register_name (gdbarch, regnum) != NULL
&& gdbarch_register_name (gdbarch, regnum)[0] != '\0')
@@ -373,7 +373,7 @@ set_endian (const char *ignore_args, int from_tty, struct cmd_list_element *c)
SELECTED may be NULL, in which case we return the architecture
associated with TARGET_DESC. If SELECTED specifies a variant
- of the architecture associtated with TARGET_DESC, return the
+ of the architecture associated with TARGET_DESC, return the
more specific of the two.
If SELECTED is a different architecture, but it is accepted as
diff --git a/gdb/arm-nbsd-tdep.c b/gdb/arm-nbsd-tdep.c
index 804d02aa9aa..f9ea084d1c8 100644
--- a/gdb/arm-nbsd-tdep.c
+++ b/gdb/arm-nbsd-tdep.c
@@ -28,7 +28,7 @@
#define ARM_NBSD_JB_PC 24
#define ARM_NBSD_JB_ELEMENT_SIZE ARM_INT_REGISTER_SIZE
-/* For compatibility with previous implemenations of GDB on arm/NetBSD,
+/* For compatibility with previous implementations of GDB on arm/NetBSD,
override the default little-endian breakpoint. */
static const gdb_byte arm_nbsd_arm_le_breakpoint[] = {0x11, 0x00, 0x00, 0xe6};
static const gdb_byte arm_nbsd_arm_be_breakpoint[] = {0xe6, 0x00, 0x00, 0x11};
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index fe5605c8700..86946189fb1 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -3737,7 +3737,7 @@ arm_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
}
}
- /* Push stack padding for dowubleword alignment. */
+ /* Push stack padding for doubleword alignment. */
if (nstack & (align - 1))
{
si = push_stack_item (si, val, ARM_INT_REGISTER_SIZE);
@@ -4828,7 +4828,7 @@ cleanup_branch (struct gdbarch *gdbarch, struct regcache *regs,
if (dsc->u.branch.link)
{
/* The value of LR should be the next insn of current one. In order
- not to confuse logic hanlding later insn `bx lr', if current insn mode
+ not to confuse logic handling later insn `bx lr', if current insn mode
is Thumb, the bit 0 of LR value should be set to 1. */
ULONGEST next_insn_addr = dsc->insn_addr + dsc->insn_size;
@@ -5519,7 +5519,7 @@ install_load_store (struct gdbarch *gdbarch, struct regcache *regs,
Before this sequence of instructions:
r0 is the PC value got from displaced_read_reg, so r0 = from + 8;
- r2 is the Rn value got from dispalced_read_reg.
+ r2 is the Rn value got from displaced_read_reg.
Insn1: push {pc} Write address of STR instruction + offset on stack
Insn2: pop {r4} Read it back from stack, r4 = addr(Insn1) + offset
@@ -6196,7 +6196,7 @@ cleanup_svc (struct gdbarch *gdbarch, struct regcache *regs,
}
-/* Common copy routine for svc instruciton. */
+/* Common copy routine for svc instruction. */
static int
install_svc (struct gdbarch *gdbarch, struct regcache *regs,
@@ -9445,7 +9445,7 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
}
/* Add standard register aliases. We add aliases even for those
- nanes which are used by the current architecture - it's simpler,
+ names which are used by the current architecture - it's simpler,
and does no harm, since nothing ever lists user registers. */
for (i = 0; i < ARRAY_SIZE (arm_register_aliases); i++)
user_reg_add (gdbarch, arm_register_aliases[i].name,
@@ -10687,7 +10687,7 @@ arm_record_ld_st_reg_offset (insn_decode_record *arm_insn_r)
{
reg_dest = bits (arm_insn_r->arm_insn, 12, 15);
/* LDR insn has a capability to do branching, if
- MOV LR, PC is precedded by LDR insn having Rn as R15
+ MOV LR, PC is preceded by LDR insn having Rn as R15
in that case, it emulates branch and link insn, and hence we
need to save CSPR and PC as well. */
if (15 != reg_dest)
@@ -13006,7 +13006,7 @@ class instruction_reader : public abstract_memory_reader
} // namespace
/* Extracts arm/thumb/thumb2 insn depending on the size, and returns 0 on success
-and positive val on fauilure. */
+and positive val on failure. */
static int
extract_arm_insn (abstract_memory_reader& reader,
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 9f1b7a1e88b..ecbb2fe17a1 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -1911,7 +1911,7 @@ gen_expr (struct expression *exp, union exp_element **pc,
gen_expr (exp, pc, ax, &value3);
gen_usual_unary (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;
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index a3f82ef5a9c..4306b5409ad 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -219,7 +219,7 @@ find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address,
struct compunit_symtab *compunit_symtab = NULL;
CORE_ADDR mapped_pc;
- /* To ensure that the symbol returned belongs to the correct setion
+ /* To ensure that the symbol returned belongs to the correct section
(and that the last [random] symbol from the previous section
isn't returned) try to find the section containing PC. First try
the overlay code (which by default returns NULL); and second try
diff --git a/gdb/btrace.c b/gdb/btrace.c
index e2443a2d234..cf0a4e747fd 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -926,7 +926,7 @@ ftrace_bridge_gap (struct btrace_thread_info *btinfo,
best_r = NULL;
/* We search the back traces of LHS and RHS for valid connections and connect
- the two functon segments that give the longest combined back trace. */
+ the two function segments that give the longest combined back trace. */
for (cand_l = lhs; cand_l != NULL;
cand_l = ftrace_get_caller (btinfo, cand_l))
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c
index 21db8cdde98..50ce202bb8f 100644
--- a/gdb/c-varobj.c
+++ b/gdb/c-varobj.c
@@ -28,7 +28,7 @@ static void cplus_class_num_children (struct type *type, int children[3]);
#define ANONYMOUS_UNION_NAME _("<anonymous union>")
/* Does CHILD represent a child with no name? This happens when
- the child is an anonmous struct or union and it has no field name
+ the child is an anonymous struct or union and it has no field name
in its parent variable.
This has already been determined by *_describe_child. The easiest
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index fe74d26cab3..11ce46d9920 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -541,7 +541,7 @@ read_pe_exported_syms (minimal_symbol_reader &reader,
/* Pointer to the function address vector. */
- /* This is relatived to ordinal value. */
+ /* This is relative to ordinal value. */
unsigned long func_rva = pe_as32 (erva + exp_funcbase +
ordinal * 4);
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 869a32b2c19..e582d8f6fbb 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -417,7 +417,7 @@ static int
is_import_fixup_symbol (struct coff_symbol *cs,
enum minimal_symbol_type type)
{
- /* The following is a bit of a heuristic using the characterictics
+ /* The following is a bit of a heuristic using the characteristics
of these fixup symbols, but should work well in practice... */
int i;
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 706f65db28e..cb99b9288cd 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3056,7 +3056,7 @@ move_reg_to_mem_movem_op (unsigned short inst, inst_env_type *inst_env)
inst_env->disable_interrupt = 0;
}
-/* Handles the intructions that's not yet implemented, by setting
+/* Handles the instructions that's not yet implemented, by setting
inst_env->invalid to true. */
static void
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index ceef36473d0..123d2c0b698 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -2145,7 +2145,7 @@ darwin_nat_target::thread_alive (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,
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 564c5d3a414..bbef3726700 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2298,7 +2298,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
@@ -2628,7 +2628,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
function-relative symbols. */
valu += function_start_offset;
- /* GCC 2.95.3 emits the first N_SLINE stab somwehere in the
+ /* GCC 2.95.3 emits the first N_SLINE stab somewhere in the
middle of the prologue instead of right at the start of the
function. To deal with this we record the address for the
first N_SLINE stab to be the start of the function instead of
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 509782c319a..fd64af96db3 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -66,7 +66,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
diff --git a/gdb/disasm.c b/gdb/disasm.c
index f483a5e5cd0..b9a88395805 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -764,12 +764,12 @@ gdb_disassembler::gdb_disassembler (struct gdbarch *gdbarch,
m_di.memory_error_func = dis_asm_memory_error;
m_di.print_address_func = dis_asm_print_address;
/* NOTE: cagney/2003-04-28: The original code, from the old Insight
- disassembler had a local optomization here. By default it would
+ disassembler had a local optimization here. By default it would
access the executable file, instead of the target memory (there
was a growing list of exceptions though). Unfortunately, the
heuristic was flawed. Commands like "disassemble &variable"
didn't work as they relied on the access going to the target.
- Further, it has been supperseeded by trust-read-only-sections
+ Further, it has been superseeded by trust-read-only-sections
(although that should be superseeded by target_trust..._p()). */
m_di.read_memory_func = read_memory_func;
m_di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index 9eaed2b9fc4..528378231cd 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -151,7 +151,7 @@ public:
struct dtrace_probe_arg *get_arg_by_number (unsigned n,
struct gdbarch *gdbarch);
- /* Build the GDB internal expressiosn that, once evaluated, will
+ /* Build the GDB internal expression that, once evaluated, will
calculate the values of the arguments of the probe. */
void build_arg_exprs (struct gdbarch *gdbarch);
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index 0947ba9ec14..420c53f3974 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -57,7 +57,7 @@
GDB_INDEX_SYMBOL_KIND_SET_VALUE((cu_index), (value)); \
} while (0)
-/* Ensure we don't use more than the alloted nuber of bits for the CU. */
+/* Ensure we don't use more than the allotted number of bits for the CU. */
#define DW2_GDB_INDEX_CU_SET_VALUE(cu_index, value) \
do { \
gdb_assert (((value) & ~GDB_INDEX_CU_MASK) == 0); \
@@ -257,7 +257,7 @@ add_index_entry (struct mapped_symtab *symtab, const char *name,
(which would allow us to avoid the duplication by only having to check
the last entry pushed), but a symbol could have multiple kinds in one CU.
To keep things simple we don't worry about the duplication here and
- sort and uniqufy the list after we've processed all symbols. */
+ sort and uniquify the list after we've processed all symbols. */
slot.cu_indices.push_back (cu_index_and_attrs);
}
diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c
index e8f5aaf9c75..1b614ad8f1a 100644
--- a/gdb/dwarf2-frame-tailcall.c
+++ b/gdb/dwarf2-frame-tailcall.c
@@ -45,7 +45,7 @@ struct tailcall_cache
tailcall_cache. */
int refc;
- /* Associated found virtual taill call frames chain, it is never NULL. */
+ /* Associated found virtual tail call frames chain, it is never NULL. */
struct call_site_chain *chain;
/* Cached pretended_chain_levels result. */
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index 34b8cbcb768..3c8f0a10184 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -1704,7 +1704,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)
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 5c705b0898b..3a88c45af0c 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1375,7 +1375,7 @@ struct field_info
/* Number of fields (including baseclasses). */
int nfields = 0;
- /* Set if the accesibility of one of the fields is not public. */
+ /* Set if the accessibility of one of the fields is not public. */
int non_public_fields = 0;
/* Member function fieldlist array, contains name of possibly overloaded
@@ -16751,7 +16751,7 @@ mark_common_block_symbol_computed (struct symbol *sym,
/* Create appropriate locally-scoped variables for all the
DW_TAG_common_block entries. Also create a struct common_block
listing all such variables for `info common'. COMMON_BLOCK_DOMAIN
- is used to sepate the common blocks name namespace from regular
+ is used to separate the common blocks name namespace from regular
variable names. */
static void
@@ -17309,7 +17309,7 @@ prototyped_function_p (struct die_info *die, struct dwarf2_cu *cu)
return 1;
/* The DWARF standard implies that the DW_AT_prototyped attribute
- is only meaninful for C, but the concept also extends to other
+ is only meaningful for C, but the concept also extends to other
languages that allow unprototyped functions (Eg: Objective C).
For all other languages, assume that functions are always
prototyped. */
@@ -18039,7 +18039,7 @@ read_unspecified_type (struct die_info *die, struct dwarf2_cu *cu)
TYPE_NAME (type) = dwarf2_name (die, cu);
/* In Ada, an unspecified type is typically used when the description
- of the type is defered to a different unit. When encountering
+ of the type is deferred to a different unit. When encountering
such a type, we treat it as a stub, and try to resolve it later on,
when needed. */
if (cu->language == language_ada)
@@ -20199,7 +20199,7 @@ dwarf2_string_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *c
}
/* Return the dwo name or NULL if not present. If present, it is in either
- DW_AT_GNU_dwo_name or DW_AT_dwo_name atrribute. */
+ DW_AT_GNU_dwo_name or DW_AT_dwo_name attribute. */
static const char *
dwarf2_dwo_name (struct die_info *die, struct dwarf2_cu *cu)
{
@@ -25622,7 +25622,7 @@ per_cu_offset_and_type_eq (const void *item_lhs, const void *item_rhs)
table if necessary. For convenience, return TYPE.
The DIEs reading must have careful ordering to:
- * Not cause infite loops trying to read in DIEs as a prerequisite for
+ * Not cause infinite loops trying to read in DIEs as a prerequisite for
reading current DIE.
* Not trying to dereference contents of still incompletely read in types
while reading in other DIEs.
diff --git a/gdb/eval.c b/gdb/eval.c
index 70ba1f1e3fc..75d090fe9a5 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -418,7 +418,7 @@ unop_promote (const struct language_defn *language, struct gdbarch *gdbarch,
{
default:
/* Perform integral promotion for ANSI C/C++.
- If not appropropriate for any particular language
+ If not appropriate for any particular language
it needs to modify this function. */
{
struct type *builtin_int = builtin_type (gdbarch)->builtin_int;
@@ -3219,7 +3219,7 @@ evaluate_subexp_for_sizeof (struct expression *exp, int *pos,
/* Deal with the special case if NOSIDE is EVAL_NORMAL and the resulting
type of the subscript is a variable length array type. In this case we
- must re-evaluate the right hand side of the subcription to allow
+ must re-evaluate the right hand side of the subscription to allow
side-effects. */
case BINOP_SUBSCRIPT:
if (noside == EVAL_NORMAL)
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index a4059472574..1ab290c9903 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -76,7 +76,7 @@ print_flush (void)
static void
print_exception (struct ui_file *file, const struct gdb_exception &e)
{
- /* KLUGE: cagney/2005-01-13: Write the string out one line at a time
+ /* KLUDGE: cagney/2005-01-13: Write the string out one line at a time
as that way the MI's behavior is preserved. */
const char *start;
const char *end;
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 9422e3c1a7e..1d097470fe4 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -101,7 +101,7 @@ enum
all architectures.
Note that FreeBSD 7.0 used an older version of this structure
- (struct kinfo_ovmentry), but the NT_FREEBSD_PROCSTAT_VMMAP core
+ (struct kinfo_vmentry), but the NT_FREEBSD_PROCSTAT_VMMAP core
dump note wasn't introduced until FreeBSD 9.2. As a result, the
core dump note has always used the 7.1 and later structure
format. */
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 3c8e631b87f..bbfd68995d3 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -446,7 +446,7 @@ follow_static_link (struct frame_info *frame,
QUIT;
/* If we don't know how to compute FRAME's base address, don't give up:
- maybe the frame we are looking for is upper in the stace frame. */
+ maybe the frame we are looking for is upper in the stack frame. */
if (framefunc != NULL
&& SYMBOL_BLOCK_OPS (framefunc) != NULL
&& SYMBOL_BLOCK_OPS (framefunc)->get_frame_base != NULL
diff --git a/gdb/frame.c b/gdb/frame.c
index b62fd5cd852..3ebdc99e9ff 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -746,7 +746,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. */
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index 804206bcb37..866b9e9b6ce 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -524,7 +524,7 @@ frv_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
J - The register number of GRj in the instruction description.
K - The register number of GRk in the instruction description.
I - The register number of GRi.
- S - a signed imediate offset.
+ S - a signed immediate offset.
U - an unsigned immediate offset.
The dots below the numbers indicate where hex digit boundaries
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 1d4e43ad7f6..2533a948649 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -393,7 +393,7 @@ gnuv3_get_virtual_fn (struct gdbarch *gdbarch, struct value *container,
/* If this architecture uses function descriptors directly in the vtable,
then the address of the vtable entry is actually a "function pointer"
(i.e. points to the descriptor). We don't need to scale the index
- by the size of a function descriptor; GCC does that before outputing
+ by the size of a function descriptor; GCC does that before outputting
debug information. */
if (gdbarch_vtable_function_descriptors (gdbarch))
vfn = value_addr (vfn);
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 81fcfe2c2ac..8c71bd7650f 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -1877,13 +1877,13 @@ get_cr3 (void)
cr3 = _farnspeekl (taskbase + 0x1c) & ~0xfff;
if (cr3 > 0xfffff)
{
-#if 0 /* Not fullly supported yet. */
+#if 0 /* Not fully supported yet. */
/* The Page Directory is in UMBs. In that case, CWSDPMI puts
the first Page Table right below the Page Directory. Thus,
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;
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index 2a3d3740858..d8801197c3c 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -1343,7 +1343,7 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
frame_base_set_default (gdbarch, &h8300_frame_base);
/*
- * Miscelany
+ * Miscellany
*/
/* Stack grows up. */
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index c307de8a3e4..ae1554af0a9 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -367,7 +367,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
@@ -1182,7 +1182,7 @@ hppa64_return_value (struct gdbarch *gdbarch, struct value *function,
if (len > 16)
{
- /* All return values larget than 128 bits must be aggregate
+ /* All return values larger than 128 bits must be aggregate
return values. */
gdb_assert (!hppa64_integral_or_pointer_p (type));
gdb_assert (!hppa64_floating_p (type));
@@ -1431,7 +1431,7 @@ is_branch (unsigned long inst)
- stw: 0x1a, store a word from a general register.
- stwm: 0x1b, store a word from a general register and perform base
- register modification (2.0 will still treate it as stw).
+ register modification (2.0 will still treat it as stw).
- std: 0x1c, store a doubleword from a general register (2.0 only).
@@ -1592,7 +1592,7 @@ restart:
For unoptimized GCC code and for any HP CC code this will never ever
examine any user instructions.
- For optimzied GCC code we're faced with problems. GCC will schedule
+ For optimized GCC code we're faced with problems. GCC will schedule
its prologue and make prologue instructions available for delay slot
filling. The end result is user code gets mixed in with the prologue
and a prologue instruction may be in the delay slot of the first branch
@@ -1759,7 +1759,7 @@ restart:
final_iteration = 1;
}
- /* We've got a tenative location for the end of the prologue. However
+ /* We've got a tentative location for the end of the prologue. However
because of limitations in the unwind descriptor mechanism we may
have went too far into user code looking for the save of a register
that does not exist. So, if there registers we expected to be saved
@@ -2869,7 +2869,7 @@ hppa_match_insns (struct gdbarch *gdbarch, CORE_ADDR pc,
return 1;
}
-/* This relaxed version of the insstruction matcher allows us to match
+/* This relaxed version of the instruction matcher allows us to match
from somewhere inside the pattern, by looking backwards in the
instruction scheme. */
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index c41013984ee..0f10686bc01 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -1035,7 +1035,7 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->i386_sysenter_record = i386_linux_intx80_sysenter_syscall_record;
tdep->i386_syscall_record = i386_linux_intx80_sysenter_syscall_record;
- /* N_FUN symbols in shared libaries have 0 for their values and need
+ /* N_FUN symbols in shared libraries have 0 for their values and need
to be relocated. */
set_gdbarch_sofun_address_maybe_missing (gdbarch, 1);
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 3eb6fa4a5d7..ef2a9a7986e 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -1505,7 +1505,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' */
diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
index 0f890261a06..9efe637c37a 100644
--- a/gdb/ia64-libunwind-tdep.c
+++ b/gdb/ia64-libunwind-tdep.c
@@ -197,7 +197,7 @@ libunwind_frame_cache (struct frame_info *this_frame, void **this_cache)
The best we can do, in that case, is use the frame PC as the function
address. We don't need to give up since we still have the unwind
record to help us perform the unwinding. There is also another
- compelling to continue, because abandonning now means stopping
+ compelling to continue, because abandoning now means stopping
the backtrace, which can never be helpful for the user. */
cache->func_addr = get_frame_pc (this_frame);
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index f46673986ba..ceaf69eae56 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -707,7 +707,7 @@ ia64_memory_insert_breakpoint (struct gdbarch *gdbarch,
if (val != 0)
return val;
- /* Breakpoints already present in the code will get deteacted and not get
+ /* Breakpoints already present in the code will get detected and not get
reinserted by bp_loc_is_permanent. Multiple breakpoints at the same
location cannot induce the internal error as they are optimized into
a single instance by update_global_location_list. */
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 71057748fd1..465d3a10e59 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2079,7 +2079,7 @@ set_environment_command (const 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, ' ');
@@ -3026,7 +3026,7 @@ info_proc_cmd_1 (const 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 (const char *args, int from_tty)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 07aebfa678f..66a066f91d6 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1104,7 +1104,7 @@ follow_exec (ptid_t ptid, const char *exec_file_target)
And, we DON'T want to call delete_breakpoints() here, since
that may write the bp's "shadow contents" (the instruction
- value that was overwritten witha TRAP instruction). Since
+ value that was overwritten with a TRAP instruction). Since
we now have a new a.out, those shadow contents aren't valid. */
mark_breakpoints_out ();
@@ -1429,7 +1429,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.
@@ -5922,7 +5922,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
diff --git a/gdb/linespec.c b/gdb/linespec.c
index fb6b04e22b0..fdbb670ed79 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -3331,7 +3331,7 @@ decode_line_with_last_displayed (const 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
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 0a8ea5b8de8..22e830391be 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -3306,7 +3306,7 @@ linux_nat_wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus,
- If the thread group leader exits while other threads in the
thread group still exist, waitpid(TGID, ...) hangs. That
waitpid won't return an exit status until the other threads
- in the group are reapped.
+ in the group are reaped.
- When a non-leader thread execs, that thread just vanishes
without reporting an exit (so we'd hang if we waited for it
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index b7c4f245b95..9b1a3a5c245 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -116,7 +116,7 @@ static char *libthread_db_search_path;
static bool auto_load_thread_db = true;
/* Set to true if load-time libthread_db tests have been enabled
- by the "maintenence set check-libthread-db" command. */
+ by the "maintenance set check-libthread-db" command. */
static bool check_thread_db_on_load = false;
/* "show" command for the auto_load_thread_db configuration variable. */
diff --git a/gdb/machoread.c b/gdb/machoread.c
index db884b0790d..26eac27a049 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -588,7 +588,7 @@ macho_add_oso_symfile (oso_el *oso, const gdb_bfd_ref_ptr &abfd,
bfd_hash_table_free (&table);
- /* We need to clear SYMFILE_MAINLINE to avoid interractive question
+ /* We need to clear SYMFILE_MAINLINE to avoid interactive question
from symfile.c:symbol_file_add_with_addrs_or_offsets. */
symbol_file_add_from_bfd
(abfd.get (), name, symfile_flags & ~(SYMFILE_MAINLINE | SYMFILE_VERBOSE),
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index e76fe9aaf42..557d0e4817a 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1993,7 +1993,7 @@ parse_procedure (PDR *pr, struct compunit_symtab *search_symtab,
s = new_symbol (sh_name);
SYMBOL_DOMAIN (s) = VAR_DOMAIN;
SYMBOL_CLASS (s) = LOC_BLOCK;
- /* Donno its type, hope int is ok. */
+ /* Don't know its type, hope int is ok. */
SYMBOL_TYPE (s)
= lookup_function_type (objfile_type (pst->objfile)->builtin_int);
add_symbol (s, top_stack->cur_st, top_stack->cur_block);
@@ -2442,7 +2442,7 @@ parse_partial_symbols (minimal_symbol_reader &reader,
(inefficient;
assumes no side-effects result from ignoring ECOFF symbol)
3) create it, but lookup ELF's minimal symbol and use it's section
- during relocation, then modify "uniqify" phase to merge and
+ during relocation, then modify "uniquify" phase to merge and
eliminate the duplicate symbol
(highly inefficient)
@@ -3442,7 +3442,7 @@ parse_partial_symbols (minimal_symbol_reader &reader,
/* Usually there is a local and a global stProc symbol
for a function. This means that the function name
- has already been entered into the mimimal symbol table
+ has already been entered into the minimal symbol table
while processing the global symbols in pass 2 above.
One notable exception is the PROGRAM name from
f77 compiled executables, it is only put out as
@@ -3861,7 +3861,7 @@ psymtab_to_symtab_1 (struct objfile *objfile,
return;
pst->readin = 1;
- /* Read in all partial symbtabs on which this one is dependent.
+ /* Read in all partial symtabs on which this one is dependent.
NOTE that we do have circular dependencies, sigh. We solved
that by setting pst->readin before this point. */
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index 5b1d64c991c..056b61a3b34 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -284,7 +284,7 @@ me_module_register_set (CONFIG_ATTR me_module,
/* Given a hardware table entry HW representing a register set, return
a pointer to the keyword table with all the register names. If HW
- is NULL, return NULL, to propage the "no such register set" info
+ is NULL, return NULL, to propagate the "no such register set" info
along. */
static CGEN_KEYWORD *
register_set_keyword_table (const CGEN_HW_ENTRY *hw)
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 1a08ea0cceb..bcb5b27e12f 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -117,7 +117,7 @@ mn10300_type_align (struct type *type)
case TYPE_CODE_ARRAY:
/* HACK! Structures containing arrays, even small ones, are not
- elligible for returning in registers. */
+ eligible for returning in registers. */
return 256;
case TYPE_CODE_TYPEDEF:
diff --git a/gdb/namespace.c b/gdb/namespace.c
index e08d4f7edb4..2ec5d5d1e95 100644
--- a/gdb/namespace.c
+++ b/gdb/namespace.c
@@ -26,7 +26,7 @@
into the scope DEST. ALIAS is the name of the imported namespace
in the current scope. If ALIAS is NULL then the namespace is known
by its original name. DECLARATION is the name if the imported
- varable if this is a declaration import (Eg. using A::x), otherwise
+ variable if this is a declaration import (Eg. using A::x), otherwise
it is NULL. EXCLUDES is a list of names not to import from an
imported module or NULL. If COPY_NAMES is non-zero, then the
arguments are copied into newly allocated memory so they can be
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index f9e7d20bab5..bae556a1ff0 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -1437,7 +1437,7 @@ shared_objfile_contains_address_p (struct program_space *pspace,
searching the objfiles in the order they are stored internally,
ignoring CURRENT_OBJFILE.
- On most platorms, it should be close enough to doing the best
+ On most platforms, it should be close enough to doing the best
we can without some knowledge specific to the architecture. */
void
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index 8ced334a2d3..80d7ec96bc2 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -820,7 +820,7 @@ evaluate_subexp_opencl (struct type *expect_type, struct expression *exp,
else
{
/* For scalar operations we need to avoid evaluating operands
- unecessarily. However, for vector operations we always need to
+ unnecessarily. However, for vector operations we always need to
evaluate both operands. Unfortunately we only know which of the
two cases apply after we know the type of the second operand.
Therefore we evaluate it once using EVAL_AVOID_SIDE_EFFECTS. */
diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c
index 6a6dce15273..fdeab815a10 100644
--- a/gdb/or1k-tdep.c
+++ b/gdb/or1k-tdep.c
@@ -824,7 +824,7 @@ or1k_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
l.sw lr_loc(r1),r9 # Link (return) address
- The link register is usally saved at fp_loc - 4. It may not be saved at
+ The link register is usually saved at fp_loc - 4. It may not be saved at
all in a leaf function.
l.sw reg_loc(r1),ry # Save any callee saved regs
diff --git a/gdb/osabi.c b/gdb/osabi.c
index cc1652c5ad0..05bf4cbfb20 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -346,7 +346,7 @@ gdbarch_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
continue;
/* If the architecture described by ARCH_INFO can run code for
- the architcture we registered the handler for, then the
+ the architecture we registered the handler for, then the
handler is applicable. Note, though, that if the handler is
for an architecture that is a superset of ARCH_INFO, we can't
use that --- it would be perfectly correct for it to install
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 0d66ade4560..532813d136f 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -1085,7 +1085,7 @@ store_altivec_registers (const struct regcache *regcache, int tid,
perror_with_name (_("Unable to store AltiVec registers"));
}
-/* 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.
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index e692cffd7a1..5a70852fa4a 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -1367,7 +1367,7 @@ static struct linux_record_tdep ppc64_linux_record_tdep;
syscall ids into a canonical set of syscall ids used by process
record. (See arch/powerpc/include/uapi/asm/unistd.h in kernel tree.)
Return -1 if this system call is not supported by process record.
- Otherwise, return the syscall number for preocess reocrd of given
+ Otherwise, return the syscall number for process record of given
SYSCALL. */
static enum gdb_syscall
@@ -2159,7 +2159,7 @@ ppc_linux_init_abi (struct gdbarch_info info,
void
_initialize_ppc_linux_tdep (void)
{
- /* Register for all sub-familes of the POWER/PowerPC: 32-bit and
+ /* Register for all sub-families of the POWER/PowerPC: 32-bit and
64-bit PowerPC, and the older rs6k. */
gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc, GDB_OSABI_LINUX,
ppc_linux_init_abi);
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c
index 22757c2472a..2a732d09259 100644
--- a/gdb/ppc-sysv-tdep.c
+++ b/gdb/ppc-sysv-tdep.c
@@ -55,7 +55,7 @@ ppc_sysv_use_opencl_abi (struct type *ftype)
are passed in user stack.
If the function is returning a structure, then the return address is passed
- in r3, then the first 7 words of the parametes can be passed in registers,
+ in r3, then the first 7 words of the parameters can be passed in registers,
starting from r4. */
CORE_ADDR
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index ea00f083b12..27aaf7a076a 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2126,7 +2126,7 @@ do_enable_disable_display (struct display *d, void *data)
d->enabled_p = *(int *) data;
}
-/* Implamentation of both the "disable display" and "enable display"
+/* Implementation of both the "disable display" and "enable display"
commands. ENABLE decides what to do. */
static void
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 848ac7d6e75..57d4b8f0bfb 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -385,7 +385,7 @@ open_procinfo_files (procinfo *pi, int which)
several. Here is some rationale:
There are several file descriptors that may need to be open
- for any given process or LWP. The ones we're intereted in are:
+ for any given process or LWP. The ones we're interested in are:
- control (ctl) write-only change the state
- status (status) read-only query the state
- address space (as) read/write access memory
@@ -838,7 +838,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. */
@@ -2591,7 +2591,7 @@ procfs_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf,
File descriptors are also cached. As they are a limited resource,
we cannot hold onto them indefinitely. However, as they are
expensive to open, we don't want to throw them away
- indescriminately either. As a compromise, we will keep the file
+ indiscriminately either. As a compromise, we will keep the file
descriptors for the parent process, but discard any file
descriptors we may have accumulated for the threads.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 65dfe70dc16..1171fa9ca50 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -1972,7 +1972,7 @@ get_thread_current_frame_id (struct thread_info *tp)
For the latter, EXECUTING is false and this has no effect.
For the former, EXECUTING is true and we're in wait, about to
move the thread. Since we need to recompute the stack, we temporarily
- set EXECUTING to flase. */
+ set EXECUTING to false. */
executing = tp->executing;
set_executing (inferior_ptid, false);
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 0c6cb621630..a940274f28e 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1359,7 +1359,7 @@ record_full_wait_1 (struct target_ops *ops,
if (first_record_full_end
&& execution_direction == EXEC_REVERSE)
{
- /* When reverse excute, the first
+ /* When reverse execute, the first
record_full_end is the part of current
instruction. */
first_record_full_end = 0;
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 11c141e42c4..bc7c71ffdd4 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -1076,7 +1076,7 @@ remote_fileio_func_system (remote_target *remote, 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. */
diff --git a/gdb/remote.c b/gdb/remote.c
index f616569ff1c..5e1745db44e 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1523,7 +1523,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;
@@ -1864,7 +1864,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
@@ -7536,7 +7536,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
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 9123a3dc33a..33cdc788117 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -1234,7 +1234,7 @@ store_insn_p (unsigned long op, unsigned long rs,
this masking operation is equal to BL_INSTRUCTION, then the opcode in
question is a ``bl'' instruction.
- BL_DISPLACMENT_MASK is anded with the opcode in order to extract
+ BL_DISPLACEMENT_MASK is anded with the opcode in order to extract
the branch displacement. */
#define BL_MASK 0xfc000001
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index a1c085cfbb0..1f3a9e2053f 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -170,7 +170,7 @@ struct mem_read_abstraction
{
struct mem_read_abstraction_base base; /* The parent struct. */
bfd_vma memaddr; /* Where to read from. */
- struct disassemble_info* info; /* The disassember to use for reading. */
+ struct disassemble_info* info; /* The disassembler to use for reading. */
};
/* Advance the reader by one byte. */
@@ -676,7 +676,7 @@ s12z_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_register_type (gdbarch, s12z_register_type);
frame_unwind_append_unwinder (gdbarch, &s12z_frame_unwind);
- /* Currently, the only known producer for this archtecture, produces buggy
+ /* Currently, the only known producer for this architecture, produces buggy
dwarf CFI. So don't append a dwarf unwinder until the situation is
better understood. */
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 19306d3464e..5ca763c40f4 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -870,7 +870,7 @@ score7_analyze_prologue (CORE_ADDR startaddr, CORE_ADDR pc,
inst_t *inst = NULL;
if (memblock != NULL)
{
- /* Reading memory block from target succefully and got all
+ /* Reading memory block from target successfully and got all
the instructions(from STARTADDR to PC) needed. */
score7_adjust_memblock_ptr (&memblock, prev_pc, cur_pc);
inst = score7_fetch_inst (gdbarch, cur_pc, memblock);
diff --git a/gdb/ser-base.c b/gdb/ser-base.c
index 85429b68cbb..f7e76ce5750 100644
--- a/gdb/ser-base.c
+++ b/gdb/ser-base.c
@@ -46,7 +46,7 @@ enum {
/* >= 0 (TIMER_SCHEDULED) */
/* The ID of the currently scheduled timer event. This state is
rarely encountered. Timer events are one-off so as soon as the
- event is delivered the state is shanged to NOTHING_SCHEDULED. */
+ event is delivered the state is changed to NOTHING_SCHEDULED. */
FD_SCHEDULED = -1,
/* The fd_event() handler is scheduled. It is called when ever the
file descriptor becomes ready. */
@@ -191,7 +191,7 @@ fd_event (int error, void *context)
/* PUSH_EVENT: The input FIFO is non-empty (or there is a pending
error). Nag the client until all the data has been read. In the
case of errors, the client will need to close or de-async the
- device before naging stops. */
+ device before nagging stops. */
static void
push_event (void *context)
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index bf7bffbe584..27d7c08575d 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -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))
diff --git a/gdb/skip.c b/gdb/skip.c
index cc10692f493..a869aaafcd3 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -179,7 +179,7 @@ skip_file_command (const char *arg, int from_tty)
if (symtab == NULL)
error (_("No default file now."));
- /* It is not a typo, symtab_to_filename_for_display woule be needlessly
+ /* It is not a typo, symtab_to_filename_for_display would be needlessly
ambiguous. */
filename = symtab_to_fullname (symtab);
}
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 68fa85130a1..f723bd54434 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -391,7 +391,7 @@ sol_thread_target::detach (inferior *inf, int from_tty)
beneath->detach (inf, from_tty);
}
-/* Resume execution of process PTID. If STEP is nozero, then just
+/* Resume execution of process PTID. If STEP is nonzero, then just
single step it. If SIGNAL is nonzero, restart it with that signal
activated. We may have to convert PTID from a thread ID to an LWP
ID for procfs. */
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 486ae1215b0..27299ffca05 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -2515,7 +2515,7 @@ read_program_headers_from_bfd (bfd *abfd)
... Though the system chooses virtual addresses for
individual processes, it maintains the segments' relative
positions. Because position-independent code uses relative
- addressesing between segments, the difference between
+ addressing between segments, the difference between
virtual addresses in memory must match the difference
between virtual addresses in the file. The difference
between the virtual address of any segment in memory and
@@ -3139,7 +3139,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. */
diff --git a/gdb/solib.c b/gdb/solib.c
index db6a52d2c14..17d0c4cea21 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -144,7 +144,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.
*/
diff --git a/gdb/source.c b/gdb/source.c
index 74797525aa1..9f53d654f36 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1115,7 +1115,7 @@ find_and_open_source (const char *filename,
/* Open a source file given a symtab S. Returns a file descriptor or
negative number for error.
- This function is a convience function to find_and_open_source. */
+ This function is a convenience function to find_and_open_source. */
scoped_fd
open_source_file (struct symtab *s)
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 8a124872c7f..0905c57438a 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -149,7 +149,7 @@ sparc_fetch_inferior_registers (struct regcache *regcache, int regnum)
belong to the selected thread (the LWP could be in the middle of
executing the thread switch code).
- These functions should instead be paramaterized with an explicit
+ These functions should instead be parameterized with an explicit
object (struct regcache, struct thread_info?) into which the LWPs
registers can be written. */
pid = get_ptrace_pid (regcache->ptid ());
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index 10245235b3e..89755a19c92 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -234,7 +234,7 @@ sparc_sol2_static_transform_name (const char *name)
globalization prefix is followed by the function name (nested
static variables within a function are supposed to generate a
warning message, and are left alone). The procedure is
- documented in the Stabs Interface Manual, which is distrubuted
+ documented in the Stabs Interface Manual, which is distributed
with the compilers, although version 4.0 of the manual seems to
be incorrect in some places, at least for SPARC. The
globalization prefix is encoded into an N_OPT stab, with the form
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index b75fe962c31..0a816e413de 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1687,7 +1687,7 @@ sparc_analyze_control_transfer (struct regcache *regcache,
if (fused_p)
{
/* Fused compare-and-branch instructions are non-delayed,
- and do not have an annuling capability. So we need to
+ and do not have an annulling capability. So we need to
always set a breakpoint on both the NPC and the branch
target address. */
gdb_assert (offset != 0);
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 5b7d57a2163..fa55fcb818c 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -1463,7 +1463,7 @@ sparc64_store_arguments (struct regcache *regcache, int nargs,
/* The psABI says that "Every stack frame must be 16-byte aligned." */
sp &= ~0xf;
- /* Now we store the arguments in to the "paramater array". Some
+ /* Now we store the arguments in to the "parameter array". Some
Integer or Pointer arguments and Structure or Union arguments
will be passed in %o registers. Some Floating arguments and
floating members of structures are passed in floating-point
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index fa2521f1ca3..2896d98f40d 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3890,7 +3890,7 @@ read_huge_number (const char **pp, int end, int *bits,
&& len == twos_complement_bits / 3))
{
/* Ok, we have enough characters for a signed value, check
- for signness by testing if the sign bit is set. */
+ for signedness by testing if the sign bit is set. */
sign_bit = (twos_complement_bits % 3 + 2) % 3;
c = *p - '0';
if (c & (1 << sign_bit))
diff --git a/gdb/stack.c b/gdb/stack.c
index 32c9c7380b4..fa057db6e35 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -297,7 +297,7 @@ print_stack_frame (struct frame_info *frame, int print_level,
int set_current_sal)
{
- /* For mi, alway print location and address. */
+ /* For mi, always print location and address. */
if (current_uiout->is_mi_like_p ())
print_what = LOC_AND_ADDRESS;
@@ -349,7 +349,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 frame_print_options &fp_opts,
diff --git a/gdb/symfile.c b/gdb/symfile.c
index ca1360f0a7e..82081b16296 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -499,7 +499,7 @@ addr_info_make_relative (section_addr_info *addrs, bfd *abfd)
int i;
/* Find lowest loadable section to be used as starting point for
- continguous sections. */
+ contiguous sections. */
lower_sect = NULL;
bfd_map_over_sections (abfd, find_lowest_section, &lower_sect);
if (lower_sect == NULL)
@@ -905,7 +905,7 @@ init_entry_point_info (struct objfile *objfile)
into a format-specific offset table --- a `struct section_offsets'.
The sectindex field is used to control the ordering of sections
with the same name. Upon return, it is updated to contain the
- correspondig BFD section index, or -1 if the section was not found.
+ corresponding BFD section index, or -1 if the section was not found.
ADD_FLAGS encodes verbosity level, whether this is main symbol or
an extra symbol file such as dynamically loaded code, and wether
@@ -1444,7 +1444,7 @@ find_separate_debug_file (const char *dir,
https://sourceware.org/ml/gdb-patches/2019-04/msg00605.html
- If some of those scenarions need to be supported, we will need to
+ If some of those scenarios need to be supported, we will need to
use a different condition for HAS_DRIVE_SPEC and a different macro
instead of STRIP_DRIVE_SPEC, which work on Posix systems as well. */
std::string drive;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 8a551f1575a..fc736fd2b77 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -4026,7 +4026,7 @@ operator_chars (const char *p, const char **end)
}
else
{
- /* Gratuitous qoute: skip it and move on. */
+ /* Gratuitous quote: skip it and move on. */
p++;
continue;
}
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index f4213bf5880..f83c2f963ad 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1758,7 +1758,7 @@ record_xml_tdesc (const char *xml_file, const struct target_desc *tdesc)
}
-/* Test the convesion process of a target description to/from xml: Take a target
+/* Test the conversion process of a target description to/from xml: Take a target
description TDESC, convert to xml, back to a description, and confirm the new
tdesc is identical to the original. */
static bool
diff --git a/gdb/target-float.c b/gdb/target-float.c
index 0fd71c0dc33..4ef3505b067 100644
--- a/gdb/target-float.c
+++ b/gdb/target-float.c
@@ -2262,7 +2262,7 @@ get_target_float_ops (enum target_float_ops_kind kind)
/* For binary floating-point formats that do not match any host format,
use mpfr_t as intermediate format to provide precise target-floating
- point emulation. However, if the MPFR library is not availabe,
+ point emulation. However, if the MPFR library is not available,
use the largest host floating-point type as intermediate format. */
case target_float_ops_kind::binary:
{
diff --git a/gdb/thread.c b/gdb/thread.c
index 17bc642b84d..7c8426d6257 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -444,7 +444,7 @@ thread_step_over_chain_remove (struct thread_info *tp)
step_over_chain_remove (&step_over_queue_head, tp);
}
-/* Delete the thread referenced by THR. If SILENT, don't notifyi
+/* Delete the thread referenced by THR. If SILENT, don't notify
the observer of this exit.
THR must not be NULL or a failed assertion will be raised. */
@@ -709,7 +709,7 @@ delete_exited_threads (void)
delete_thread (tp);
}
-/* Return true value if stack temporaies are enabled for the thread
+/* Return true value if stack temporaries are enabled for the thread
TP. */
bool
diff --git a/gdb/utils.c b/gdb/utils.c
index e685cc20847..18d81903d19 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1338,7 +1338,7 @@ set_screen_size (void)
commands and either:
- the user specified "unlimited", which maps to UINT_MAX, or
- - the user spedified some number between INT_MAX and UINT_MAX.
+ - the user specified some number between INT_MAX and UINT_MAX.
Cap "infinity" to approximately sqrt(INT_MAX) so that we don't
overflow in rl_set_screen_size, which multiplies rows and columns
@@ -2034,7 +2034,7 @@ puts_debug (char *prefix, char *string, char *suffix)
/* Print a variable number of ARGS using format FORMAT. If this
information is going to put the amount written (since the last call
to REINITIALIZE_MORE_FILTER or the last page break) over the page size,
- call prompt_for_continue to get the users permision to continue.
+ call prompt_for_continue to get the users permission to continue.
Unlike fprintf, this function does not return a value.
diff --git a/gdb/valops.c b/gdb/valops.c
index 4c8efd90fbb..e197cefd194 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -907,7 +907,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
@@ -3850,7 +3850,7 @@ value_slice (struct value *array, int lowbound, int length)
/* Create a value for a FORTRAN complex number. Currently most of the
time values are coerced to COMPLEX*16 (i.e. a complex number
composed of 2 doubles. This really should be a smarter routine
- that figures out precision inteligently as opposed to assuming
+ that figures out precision intelligently as opposed to assuming
doubles. FIXME: fmb */
struct value *
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 919ab938213..5616db12ef0 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1329,7 +1329,7 @@ val_print_scalar_formatted (struct type *type,
(leading 0 or 0x).
Hilfinger/2004-09-09: USE_C_FORMAT was originally called USE_LOCAL
- and was intended to request formating according to the current
+ and was intended to request formatting according to the current
language and would be used for most integers that GDB prints. The
exceptional cases were things like protocols where the format of
the integer is a protocol thing, not a user-visible thing). The
@@ -2664,7 +2664,7 @@ print_converted_chars_to_obstack (struct obstack *obstack,
obstack, 0, &need_escape);
obstack_grow_wstr (obstack, LCST (">"));
- /* We do not attempt to outupt anything after this. */
+ /* We do not attempt to output anything after this. */
state = FINISH;
break;
@@ -3120,7 +3120,7 @@ using uinteger_option_def
using zuinteger_unlimited_option_def
= gdb::option::zuinteger_unlimited_option_def<value_print_options>;
-/* Definions of options for the "print" and "compile print"
+/* Definitions of options for the "print" and "compile print"
commands. */
static const gdb::option::option_def value_print_option_defs[] = {
diff --git a/gdb/value.c b/gdb/value.c
index 67fe2f17c05..cbdb5f71f56 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1978,7 +1978,7 @@ init_if_undefined_command (const char* args, int from_tty)
intvar = expr->elts[2].internalvar;
/* Only evaluate the expression if the lvalue is void.
- This may still fail if the expresssion is invalid. */
+ This may still fail if the expression is invalid. */
if (intvar->kind == INTERNALVAR_VOID)
evaluate_expression (expr.get ());
}
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 09c42a352a5..10d5a67e154 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1998,7 +1998,7 @@ varobj::~varobj ()
value were accessible.
This differs from VAR->type in that VAR->type is always
- the true type of the expession in the source language.
+ the true type of the expression in the source language.
The return value of this function is the type we're
actually storing in varobj, and using for displaying
the values and for comparing previous and new values.
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index a756913cabf..5901f63b28a 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -147,7 +147,7 @@ static GetConsoleFontSize_ftype *GetConsoleFontSize;
static int have_saved_context; /* True if we've saved context from a
cygwin signal. */
#ifdef __CYGWIN__
-static CONTEXT saved_context; /* Containes the saved context from a
+static CONTEXT saved_context; /* Contains the saved context from a
cygwin signal. */
#endif
@@ -518,7 +518,7 @@ windows_delete_thread (ptid_t ptid, DWORD exit_code, bool main_thread_p)
Note that no notification was printed when the main thread
was created, and thus, unless in verbose mode, we should be
- symetrical, and avoid that notification for the main thread
+ symmetrical, and avoid that notification for the main thread
here as well. */
if (info_verbose)
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index aec19237214..93784141fef 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1166,7 +1166,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst)
c_type value of main symbol table will be set only in case of
C_EXT/C_HIDEEXT/C_WEAKEXT storage class symbols.
Bit 10 of type is set if symbol is a function, ie the value is set
- to 32(0x20). So we need to read the first function auxiliay entry
+ to 32(0x20). So we need to read the first function auxiliary entry
which contains the size. */
if (cs->c_naux > 1 && ISFCN (cs->c_type))
{
@@ -1184,7 +1184,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst)
continue;
}
/* Read the csect auxiliary header, which is always the last by
- onvention. */
+ convention. */
bfd_coff_swap_aux_in (abfd,
raw_auxptr
+ ((coff_data (abfd)->local_symesz)
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 2dd76c37251..9b8b7e2864f 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -43,7 +43,7 @@ enum gdb_regnum
to the function in r2. Further arguments are beginning in r3 then.
R13 is used as frame pointer when GCC compiles w/o optimization
R14 is used as "PSW", displaying the CPU status.
- R15 is used implicitely as stack pointer. */
+ R15 is used implicitly as stack pointer. */
E_R0_REGNUM,
E_R1_REGNUM,
E_R2_REGNUM, E_1ST_ARG_REGNUM = E_R2_REGNUM, E_PTR_RET_REGNUM = E_R2_REGNUM,
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index efa0bcb1dc3..4af2ccd4d9e 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -931,7 +931,7 @@ typedef struct xtensa_windowed_frame_cache
/* Each element of xtensa_call0_frame_cache.c0_rt[] describes for each
A-register where the current content of the reg came from (in terms
of an original reg and a constant). Negative values of c0_rt[n].fp_reg
- mean that the orignal content of the register was saved to the stack.
+ mean that the original content of the register was saved to the stack.
c0_rt[n].fr.ofs is NOT the offset from the frame base because we don't
know where SP will end up until the entire prologue has been analyzed. */
@@ -957,7 +957,7 @@ typedef struct xtensa_call0_frame_cache
int c0_hasfp; /* Current frame uses frame pointer. */
int fp_regnum; /* A-register used as FP. */
int c0_fp; /* Actual value of frame pointer. */
- int c0_fpalign; /* Dinamic adjustment for the stack
+ int c0_fpalign; /* Dynamic adjustment for the stack
pointer. It's an AND mask. Zero,
if alignment was not adjusted. */
int c0_old_sp; /* In case of dynamic adjustment, it is
@@ -1349,7 +1349,7 @@ xtensa_frame_cache (struct frame_info *this_frame, void **this_cache)
if ((cache->wd.ws & (1 << cache->wd.wb)) == 0)
{
/* Register window overflow already happened.
- We can read caller's SP from the proper spill loction. */
+ We can read caller's SP from the proper spill location. */
sp = get_frame_register_unsigned
(this_frame, gdbarch_tdep (gdbarch)->a0_base + 1);
cache->prev_sp = read_memory_integer (sp - 12, 4, byte_order);
@@ -1387,7 +1387,7 @@ xtensa_frame_cache (struct frame_info *this_frame, void **this_cache)
static int xtensa_session_once_reported = 1;
/* Report a problem with prologue analysis while doing backtracing.
- But, do it only once to avoid annoyng repeated messages. */
+ But, do it only once to avoid annoying repeated messages. */
static void
warning_once (void)
@@ -1893,7 +1893,7 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch,
/* Set the return address of dummy frame to the dummy address.
The return address for the current function (in A0) is
- saved in the dummy frame, so we can savely overwrite A0 here. */
+ saved in the dummy frame, so we can safely overwrite A0 here. */
if (gdbarch_tdep (gdbarch)->call_abi != CallAbiCall0Only)
{
@@ -2172,7 +2172,7 @@ call0_classify_opcode (xtensa_isa isa, xtensa_opcode opc)
be within a bundle. Updates the destination register tracking info
accordingly. The pc is needed only for pc-relative load instructions
(eg. l32r). The SP register number is needed to identify stores to
- the stack frame. Returns 0, if analysis was succesfull, non-zero
+ the stack frame. Returns 0, if analysis was successful, non-zero
otherwise. */
static int
@@ -2388,7 +2388,7 @@ call0_analyze_prologue (struct gdbarch *gdbarch,
body_pc = prologue_sal.end;
/* If we are going to analyze the prologue in general without knowing about
- the current PC, make the best assumtion for the end of the prologue. */
+ the current PC, make the best assumption for the end of the prologue. */
if (pc == 0)
{
find_pc_partial_function (start, 0, NULL, &end_pc);