From 33b5899fc0c31059377e9bdf76d889ff0c803ae1 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 3 Jun 2023 22:43:57 +0200 Subject: [PATCH] [gdb] Fix typos Fix a few typos: - implemention -> implementation - convertion(s) -> conversion(s) - backlashes -> backslashes - signoring -> ignoring - (un)ambigious -> (un)ambiguous - occured -> occurred - hidding -> hiding - temporarilly -> temporarily - immediatelly -> immediately - sillyness -> silliness - similiar -> similar - porkuser -> pokeuser - thats -> that - alway -> always - supercede -> supersede - accomodate -> accommodate - aquire -> acquire - priveleged -> privileged - priviliged -> privileged - priviledges -> privileges - privilige -> privilege - recieve -> receive - (p)refered -> (p)referred - succesfully -> successfully - successfuly -> successfully - responsability -> responsibility - wether -> whether - wich -> which - disasbleable -> disableable - descriminant -> discriminant - construcstor -> constructor - underlaying -> underlying - underyling -> underlying - structureal -> structural - appearences -> appearances - terciarily -> tertiarily - resgisters -> registers - reacheable -> reachable - likelyhood -> likelihood - intepreter -> interpreter - disassemly -> disassembly - covnersion -> conversion - conviently -> conveniently - atttribute -> attribute - struction -> struct - resonable -> reasonable - popupated -> populated - namespaxe -> namespace - intialize -> initialize - identifer(s) -> identifier(s) - expection -> exception - exectuted -> executed - dungerous -> dangerous - dissapear -> disappear - completly -> completely - (inter)changable -> (inter)changeable - beakpoint -> breakpoint - automativ -> automatic - alocating -> allocating - agressive -> aggressive - writting -> writing - reguires -> requires - registed -> registered - recuding -> reducing - opeartor -> operator - ommitted -> omitted - modifing -> modifying - intances -> instances - imbedded -> embedded - gdbaarch -> gdbarch - exection -> execution - direcive -> directive - demanged -> demangled - decidely -> decidedly - argments -> arguments - agrument -> argument - amespace -> namespace - targtet -> target - supress(ed) -> suppress(ed) - startum -> stratum - squence -> sequence - prompty -> prompt - overlow -> overflow - memember -> member - languge -> language - geneate -> generate - funcion -> function - exising -> existing - dinking -> syncing - destroh -> destroy - clenaed -> cleaned - changep -> changedp (name of variable) - arround -> around - aproach -> approach - whould -> would - symobl -> symbol - recuse -> recurse - outter -> outer - freeds -> frees - contex -> context Tested on x86_64-linux. Reviewed-By: Tom Tromey --- gdb/README | 2 +- gdb/aarch64-tdep.c | 2 +- gdb/ada-lang.c | 6 +++--- gdb/ada-tasks.c | 2 +- gdb/ada-valprint.c | 2 +- gdb/alpha-bsd-tdep.c | 2 +- gdb/amd-dbgapi-target.c | 2 +- gdb/amd64-tdep.c | 2 +- gdb/arch-utils.c | 2 +- gdb/arch-utils.h | 2 +- gdb/arm-linux-tdep.c | 2 +- gdb/avr-tdep.c | 8 ++++---- gdb/breakpoint.c | 2 +- gdb/bsd-uthread.c | 2 +- gdb/build-id.c | 2 +- gdb/c-varobj.c | 2 +- gdb/coff-pe-read.c | 2 +- gdb/command.h | 2 +- gdb/cp-support.h | 2 +- gdb/csky-tdep.c | 2 +- gdb/dbxread.c | 2 +- gdb/doc/gdb.texinfo | 10 +++++----- gdb/doc/guile.texi | 2 +- gdb/doc/python.texi | 6 +++--- gdb/dwarf2/line-header.h | 2 +- gdb/dwarf2/read.c | 6 +++--- gdb/features/rs6000/powerpc-601.xml | 2 +- gdb/features/rs6000/rs6000.xml | 4 ++-- gdb/frame.h | 4 ++-- gdb/gcore-elf.h | 2 +- gdb/gdbarch.h | 4 ++-- gdb/gdbcmd.h | 2 +- gdb/gdbtypes.h | 4 ++-- gdb/gmp-utils.c | 4 ++-- gdb/gnu-nat.c | 4 ++-- gdb/guile/scm-param.c | 2 +- gdb/i386-tdep.c | 2 +- gdb/i386-tdep.h | 4 ++-- gdb/ia64-tdep.h | 2 +- gdb/infcall.c | 2 +- gdb/interps.h | 2 +- gdb/language.h | 2 +- gdb/m2-lang.c | 2 +- gdb/macroexp.h | 2 +- gdb/macrotab.h | 2 +- gdb/make-target-delegates.py | 2 +- gdb/mdebugread.c | 2 +- gdb/mi/mi-common.h | 2 +- gdb/mips-tdep.c | 4 ++-- gdb/namespace.h | 2 +- gdb/nat/aarch64-hw-point.c | 2 +- gdb/nat/linux-osdata.c | 2 +- gdb/nat/linux-ptrace.c | 2 +- gdb/or1k-linux-tdep.c | 2 +- gdb/ppc-linux-nat.c | 4 ++-- gdb/python/python.c | 2 +- gdb/remote.c | 4 ++-- gdb/rs6000-aix-nat.c | 2 +- gdb/rs6000-aix-tdep.c | 2 +- gdb/rs6000-tdep.c | 2 +- gdb/ser-mingw.c | 4 ++-- gdb/solib-svr4.c | 6 +++--- gdb/stubs/m32r-stub.c | 2 +- gdb/stubs/m68k-stub.c | 2 +- gdb/stubs/sh-stub.c | 2 +- gdb/stubs/z80-stub.c | 4 ++-- gdb/symfile.c | 2 +- gdb/target.h | 2 +- gdb/target/waitstatus.h | 2 +- gdb/testsuite/gdb.arch/e500-regs.exp | 2 +- gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c | 2 +- gdb/testsuite/gdb.base/all-architectures.exp.tcl | 2 +- gdb/testsuite/gdb.base/bigcore.c | 2 +- gdb/testsuite/gdb.base/break-always.exp | 2 +- gdb/testsuite/gdb.base/call-ar-st.c | 2 +- gdb/testsuite/gdb.base/default.exp | 2 +- gdb/testsuite/gdb.base/exitsignal.exp | 2 +- gdb/testsuite/gdb.base/fork-print-inferior-events.exp | 2 +- gdb/testsuite/gdb.base/scope0.c | 2 +- gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp | 2 +- gdb/testsuite/gdb.cp/cpexprs.cc | 2 +- gdb/testsuite/gdb.cp/oranking.cc | 6 +++--- gdb/testsuite/gdb.fortran/array-slices.exp | 2 +- gdb/testsuite/gdb.multi/multi-arch-exec.exp | 2 +- gdb/testsuite/gdb.python/py-shared.exp | 4 ++-- gdb/testsuite/gdb.python/py-xmethods.cc | 2 +- gdb/testsuite/gdb.python/python.exp | 2 +- gdb/testsuite/gdb.threads/thread-specific-bp.exp | 2 +- gdb/testsuite/lib/completion-support.exp | 4 ++-- gdb/testsuite/lib/gdb.exp | 2 +- gdb/testsuite/lib/prelink-support.exp | 4 ++-- gdb/testsuite/lib/read1.c | 2 +- gdb/tui/tui-regs.c | 2 +- gdb/tui/tui-wingeneral.c | 2 +- gdb/tui/tui-winsource.c | 2 +- gdb/tui/tui.c | 2 +- gdb/typeprint.h | 2 +- gdb/unittests/gmp-utils-selftests.c | 2 +- gdb/unittests/vec-utils-selftests.c | 2 +- gdb/valops.c | 2 +- gdb/varobj.c | 2 +- gdb/xtensa-tdep.c | 4 ++-- gdb/z80-tdep.c | 2 +- gdbserver/ax.cc | 2 +- gdbserver/inferiors.h | 2 +- gdbserver/linux-arc-low.cc | 2 +- gdbserver/linux-csky-low.cc | 2 +- gdbserver/linux-ppc-low.cc | 2 +- gdbserver/mem-break.cc | 2 +- gdbserver/remote-utils.cc | 2 +- gdbserver/server.cc | 2 +- gdbserver/server.h | 2 +- gdbserver/tracepoint.cc | 2 +- gdbserver/win32-low.cc | 2 +- gdbsupport/common-defs.h | 2 +- gdbsupport/common-exceptions.cc | 2 +- gdbsupport/enum-flags.h | 4 ++-- gdbsupport/filestuff.cc | 2 +- gdbsupport/gdb_signals.h | 2 +- gdbsupport/packed.h | 2 +- gdbsupport/pathstuff.cc | 2 +- gdbsupport/reference-to-pointer-iterator.h | 2 +- gdbsupport/scoped_ignore_sigttou.h | 2 +- gdbsupport/signals.cc | 2 +- 124 files changed, 158 insertions(+), 158 deletions(-) diff --git a/gdb/README b/gdb/README index 9699f4890c6..7543aac371c 100644 --- a/gdb/README +++ b/gdb/README @@ -635,7 +635,7 @@ architecture than the host machine running GDB). Reporting Bugs in GDB ===================== - There are several ways of reporting bugs in GDB. The prefered + There are several ways of reporting bugs in GDB. The preferred method is to use the World Wide Web: http://www.gnu.org/software/gdb/bugs/ diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 6402b28158e..d8603c45fd3 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -282,7 +282,7 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch, /* Whether the stack has been set. This should be true when we notice a SP to FP move or if we are using the SP as the base register for storing - data, in case the FP is ommitted. */ + data, in case the FP is omitted. */ bool seen_stack_set = false; /* Track X registers and D registers in prologue. */ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 237ec09050c..61e477b6b27 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -6420,7 +6420,7 @@ ada_tag_value_at_base_address (struct value *obj) obj_type = obj->type (); - /* It is the responsability of the caller to deref pointers. */ + /* It is the responsibility of the caller to deref pointers. */ if (obj_type->code () == TYPE_CODE_PTR || obj_type->code () == TYPE_CODE_REF) return obj; @@ -9878,7 +9878,7 @@ ada_value_cast (struct type *type, struct value *arg2) No : Rec := (empty => True); The size and contents of that record depends on the value of the - descriminant (Rec.Empty). At this point, neither the debugging + discriminant (Rec.Empty). At this point, neither the debugging information nor the associated type structure in GDB are able to express such dynamic types. So what the debugger does is to create "fixed" versions of the type that applies to the specific object. @@ -12222,7 +12222,7 @@ create_excep_cond_exprs (struct ada_catchpoint *c, return; /* Compute the condition expression in text form, from the specific - expection we want to catch. */ + exception we want to catch. */ std::string cond_string = ada_exception_catchpoint_cond_string (c->excep_string.c_str (), ex); diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index 8d0dec30485..14b0bf11c2a 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -310,7 +310,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. */ diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index ca5608f6090..0d5916c715c 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -747,7 +747,7 @@ ada_value_print_num (struct value *val, struct ui_file *stream, int recurse, /* For enum-valued ranges, we want to recurse, because we'll end up printing the constant's name rather than its numeric value. Character and fixed-point types are also printed - differently, so recuse for those as well. */ + differently, so recurse for those as well. */ struct type *target_type = type->target_type (); val = value_cast (target_type, val); common_val_print (val, stream, recurse + 1, options, diff --git a/gdb/alpha-bsd-tdep.c b/gdb/alpha-bsd-tdep.c index 58b3fe81522..95df78f9dbd 100644 --- a/gdb/alpha-bsd-tdep.c +++ b/gdb/alpha-bsd-tdep.c @@ -23,7 +23,7 @@ #include "alpha-tdep.h" #include "alpha-bsd-tdep.h" -/* Conviently, GDB uses the same register numbering as the +/* Conveniently, GDB uses the same register numbering as the ptrace register structure used by BSD on Alpha. */ void diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c index d188663d738..f03e82e505e 100644 --- a/gdb/amd-dbgapi-target.c +++ b/gdb/amd-dbgapi-target.c @@ -1521,7 +1521,7 @@ amd_dbgapi_target::store_registers (struct regcache *regcache, int regno) regcache->invalidate (regno); /* Invalidate all volatile registers if this register has the invalidate - volatile property. For example, writting to VCC may change the content + volatile property. For example, writing to VCC may change the content of STATUS.VCCZ. */ if (tdep->register_properties[regno] & AMD_DBGAPI_REGISTER_PROPERTY_INVALIDATE_VOLATILE) diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index d37497a2345..2b027575a0d 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -3293,7 +3293,7 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch, set_gdbarch_dummy_id (gdbarch, amd64_dummy_id); /* Hook the function epilogue frame unwinder. This unwinder is - appended to the list first, so that it supercedes the other + appended to the list first, so that it supersedes the other unwinders in function epilogues. */ frame_unwind_prepend_unwinder (gdbarch, &amd64_epilogue_override_frame_unwind); diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 1de5981765a..ee34fc07d33 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1260,7 +1260,7 @@ static struct gdbarch_registration *gdbarch_registry = NULL; std::vector gdbarch_printable_names () { - /* Accumulate a list of names based on the registed list of + /* Accumulate a list of names based on the registered list of architectures. */ std::vector arches; diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index fc0c0b16793..2bdc3251c9c 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -309,7 +309,7 @@ extern void default_read_core_file_mappings extern CORE_ADDR default_get_return_buf_addr (struct type *val_typegdbarch, frame_info_ptr cur_frame); -/* Default implementation of gdbaarch default_dwarf2_omit_typedef_p method. */ +/* Default implementation of gdbarch default_dwarf2_omit_typedef_p method. */ extern bool default_dwarf2_omit_typedef_p (struct type *target_type, const char *producer, const char *name); diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 5151fa1c5c6..dfa816990ff 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -60,7 +60,7 @@ /* 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. */ diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index ce2262c5b1a..92aec3b510f 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -112,7 +112,7 @@ enum AVR_LAST_PUSHED_REGNUM = 17, AVR_ARG1_REGNUM = 24, /* Single byte argument */ - AVR_ARGN_REGNUM = 25, /* Multi byte argments */ + AVR_ARGN_REGNUM = 25, /* Multi byte arguments */ AVR_LAST_ARG_REGNUM = 8, /* Last argument register */ AVR_RET1_REGNUM = 24, /* Single byte return value */ @@ -240,7 +240,7 @@ avr_register_type (struct gdbarch *gdbarch, int reg_nr) return builtin_type (gdbarch)->builtin_uint8; } -/* Instruction address checks and convertions. */ +/* Instruction address checks and conversions. */ static CORE_ADDR avr_make_iaddr (CORE_ADDR x) @@ -259,7 +259,7 @@ avr_convert_iaddr_to_raw (CORE_ADDR x) return ((x) & 0xffffffff); } -/* SRAM address checks and convertions. */ +/* SRAM address checks and conversions. */ static CORE_ADDR avr_make_saddr (CORE_ADDR x) @@ -277,7 +277,7 @@ avr_convert_saddr_to_raw (CORE_ADDR x) return ((x) & 0xffffffff); } -/* EEPROM address checks and convertions. I don't know if these will ever +/* EEPROM address checks and conversions. I don't know if these will ever actually be used, but I've added them just the same. TRoth */ /* TRoth/2002-04-08: Commented out for now to allow fix for problem with large diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0a520cfc169..6cf14ce579c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10942,7 +10942,7 @@ breakpoint_auto_delete (bpstat *bs) /* A comparison function for bp_location AP and BP being interfaced to std::sort. Sort elements primarily by their ADDRESS (no matter what bl_address_is_meaningful says), secondarily by ordering first - permanent elements and terciarily just ensuring the array is sorted + permanent elements and tertiarily just ensuring the array is sorted stable way despite std::sort being an unstable algorithm. */ static int diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c index d0094bdc2ca..d5c6fdd3639 100644 --- a/gdb/bsd-uthread.c +++ b/gdb/bsd-uthread.c @@ -151,7 +151,7 @@ static int bsd_uthread_thread_ctx_offset; /* Name of shared threads library. */ static const char *bsd_uthread_solib_name; -/* Non-zero if the thread startum implemented by this module is active. */ +/* Non-zero if the thread stratum implemented by this module is active. */ static int bsd_uthread_active; static CORE_ADDR diff --git a/gdb/build-id.c b/gdb/build-id.c index 00250c20ae9..65b493f0832 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -33,7 +33,7 @@ const struct bfd_build_id * build_id_bfd_get (bfd *abfd) { /* Dynamic objfiles such as ones created by JIT reader API - have no underlaying bfd structure (that is, objfile->obfd + have no underlying bfd structure (that is, objfile->obfd is NULL). */ if (abfd == nullptr) return nullptr; diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c index d2a415e60c2..87eca6b069a 100644 --- a/gdb/c-varobj.c +++ b/gdb/c-varobj.c @@ -815,7 +815,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. diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c index fdd062f1b2e..a6401c4be12 100644 --- a/gdb/coff-pe-read.c +++ b/gdb/coff-pe-read.c @@ -163,7 +163,7 @@ add_pe_exported_sym (minimal_symbol_reader &reader, /* Create a minimal symbol entry for an exported forward symbol. Return 1 if the forwarded function was found 0 otherwise. SYM_NAME contains the exported name or NULL if exported by ordinal, - FORWARD_DLL_NAME is the name of the DLL in which the target symobl resides, + FORWARD_DLL_NAME is the name of the DLL in which the target symbol resides, FORWARD_FUNC_NAME is the name of the target symbol in that DLL, ORDINAL is the ordinal index value of the symbol, DLL_NAME is the internal name of the DLL file, diff --git a/gdb/command.h b/gdb/command.h index a4641bb1fd5..467bb283cdc 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -633,7 +633,7 @@ extern cmd_list_element *add_com_alias (const char *name, extern struct cmd_list_element *add_com_suppress_notification (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, - bool *supress_notification); + bool *suppress_notification); extern struct cmd_list_element *add_info (const char *, cmd_simple_func_ftype *fun, diff --git a/gdb/cp-support.h b/gdb/cp-support.h index d12f1d4ce05..157f522cb25 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -99,7 +99,7 @@ extern unsigned int cp_entire_prefix_len (const char *name); extern gdb::unique_xmalloc_ptr cp_func_name (const char *full_name); extern gdb::unique_xmalloc_ptr cp_remove_params - (const char *demanged_name); + (const char *demangled_name); /* DEMANGLED_NAME is the name of a function, (optionally) including parameters and (optionally) a return type. Return the name of the diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c index e1bafeaa851..694c34a7bde 100644 --- a/gdb/csky-tdep.c +++ b/gdb/csky-tdep.c @@ -713,7 +713,7 @@ csky_register_type (struct gdbarch *gdbarch, int reg_nr) /* Vector register has 128 bits, and only in ck810. Just return csky_vector_type(), not check tdesc_has_registers(), is in case - of some GDB stub does not describe type for Vector resgisters + of some GDB stub does not describe type for Vector registers in the target-description-xml. */ if ((reg_nr >= CSKY_VR0_REGNUM) && (reg_nr <= CSKY_VR0_REGNUM + 15)) return csky_vector_type (gdbarch); diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 73371edd841..a0a08b14277 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1077,7 +1077,7 @@ read_dbx_symtab (minimal_symbol_reader &reader, *) The call to strchr. *) The addition of a partial symbol the two partial symbol lists. This last is a large section of code, so - I've imbedded it in the following macro. */ + I've embedded it in the following macro. */ switch (nlist.n_type) { diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index fc55c4e7b43..40d1f244417 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -43252,7 +43252,7 @@ Hex encoded (big endian) bytes representing the linear address of the thread information block. @item E @var{nn} -An error occured. This means that either the thread was not found, or the +An error occurred. This means that either the thread was not found, or the address could not be retrieved. @item @w{} @@ -43303,7 +43303,7 @@ Hex encoded sequence of uninterpreted bytes, @var{xx}@dots{}, representing the tags found in the requested memory range. @item E @var{nn} -An error occured. This means that fetching of memory tags failed for some +An error occurred. This means that fetching of memory tags failed for some reason. @item @w{} @@ -43352,7 +43352,7 @@ The request was successful and the memory tag granules were modified accordingly. @item E @var{nn} -An error occured. This means that modifying the memory tag granules failed +An error occurred. This means that modifying the memory tag granules failed for some reason. @item @w{} @@ -45402,7 +45402,7 @@ The valid responses to Host I/O packets are: @item F @var{result} [, @var{errno}] [; @var{attachment}] @var{result} is the integer value returned by this operation, usually -non-negative for success and -1 for errors. If an error has occured, +non-negative for success and -1 for errors. If an error has occurred, @var{errno} will be included in the result specifying a value defined by the File-I/O protocol (@pxref{Errno Values}). For operations which return data, @var{attachment} supplies the data as a @@ -49663,7 +49663,7 @@ terminates) is not issued when running in batch mode. @item --batch-silent Run in batch mode, just like @option{--batch}, but totally silent. All @value{GDBN} -output is supressed (stderr is unaffected). This is much quieter than +output is suppressed (stderr is unaffected). This is much quieter than @option{--silent} and would be useless for an interactive session. This is particularly useful when using targets that give @samp{Loading section} diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index 79e6dbe3664..aae0c6a5cc9 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -2446,7 +2446,7 @@ versions. Using it, you could write: (define reason (frame-unwind-stop-readon (selected-frame))) (define reason-str (unwind-stop-reason-string reason)) (if (>= reason FRAME_UNWIND_FIRST_ERROR) - (format #t "An error occured: ~s\n" reason-str)) + (format #t "An error occurred: ~s\n" reason-str)) @end smallexample @end table @end deffn diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 69755e96143..02cb9ad4bc0 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -732,7 +732,7 @@ prompt) is translated to a Python @code{KeyboardInterrupt} exception. In all cases, your exception handler will see the @value{GDBN} error message as its value and the Python call stack backtrace at the Python -statement closest to where the @value{GDBN} error occured as the +statement closest to where the @value{GDBN} error occurred as the traceback. @@ -4074,7 +4074,7 @@ available. A boolean indicating whether the instruction was executed speculatively. @end defvar -If an error occured during recording or decoding a recording, this error is +If an error occurred during recording or decoding a recording, this error is represented by a @code{gdb.RecordGap} object in the instruction list. It has the following attributes: @@ -5423,7 +5423,7 @@ versions. Using it, you could write: reason = gdb.selected_frame().unwind_stop_reason () reason_str = gdb.frame_stop_reason_string (reason) if reason >= gdb.FRAME_UNWIND_FIRST_ERROR: - print ("An error occured: %s" % reason_str) + print ("An error occurred: %s" % reason_str) @end smallexample @end table diff --git a/gdb/dwarf2/line-header.h b/gdb/dwarf2/line-header.h index 59a42e336f5..06d2eec573b 100644 --- a/gdb/dwarf2/line-header.h +++ b/gdb/dwarf2/line-header.h @@ -77,7 +77,7 @@ struct line_header : offset_in_dwz {}, m_comp_dir (comp_dir) {} - /* This constructor should only be used to create line_header intances to do + /* This constructor should only be used to create line_header instances to do hash table lookups. */ line_header (sect_offset sect_off, bool offset_in_dwz) : sect_off (sect_off), diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 4828409222c..2f835ddae5e 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -9863,7 +9863,7 @@ inherit_abstract_dies (struct die_info *die, struct dwarf2_cu *cu) same. This is a shallow traversal and it is not bullet-proof; the compiler can trick the debugger into believing that the trees are isomorphic, whereas they actually are not. However, the - likelyhood of this happening is pretty low, and a full-fledged + likelihood of this happening is pretty low, and a full-fledged check would be an overkill. */ bool are_isomorphic = true; die_info *concrete_child = die->child; @@ -13740,7 +13740,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. */ range_types.push_back (child_type); } @@ -19989,7 +19989,7 @@ determine_prefix (struct die_info *die, struct dwarf2_cu *cu) DW_AT_specification // refers to die #3 Thus, when processing die #4, we have to pretend that we're in - the context of its DW_AT_specification, namely the contex of die + the context of its DW_AT_specification, namely the context of die #3. */ spec_cu = cu; spec_die = die_specification (die, &spec_cu); diff --git a/gdb/features/rs6000/powerpc-601.xml b/gdb/features/rs6000/powerpc-601.xml index c2bce7ea3c9..b787f3ac706 100644 --- a/gdb/features/rs6000/powerpc-601.xml +++ b/gdb/features/rs6000/powerpc-601.xml @@ -11,7 +11,7 @@ + org.gnu.gdb.power.core, to accommodate mq. --> diff --git a/gdb/features/rs6000/rs6000.xml b/gdb/features/rs6000/rs6000.xml index c686acd1a18..701b3b79599 100644 --- a/gdb/features/rs6000/rs6000.xml +++ b/gdb/features/rs6000/rs6000.xml @@ -13,7 +13,7 @@ rs6000:6000 + org.gnu.gdb.power.core, to accommodate mq, cnd, and cnt. --> @@ -58,7 +58,7 @@ diff --git a/gdb/frame.h b/gdb/frame.h index 355150ab585..1d7422cac32 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -595,7 +595,7 @@ void set_current_sal_from_frame (frame_info_ptr); extern CORE_ADDR get_frame_base (frame_info_ptr); -/* Return the per-frame unique identifer. Can be used to relocate a +/* Return the per-frame unique identifier. Can be used to relocate a frame after a frame cache flush (and other similar operations). If FI is NULL, return the null_frame_id. */ extern struct frame_id get_frame_id (frame_info_ptr fi); @@ -937,7 +937,7 @@ struct frame_arg struct value *val = nullptr; /* String containing the error message, it is more usually NULL indicating no - error occured reading this parameter. */ + error occurred reading this parameter. */ gdb::unique_xmalloc_ptr error; /* One of the print_entry_values_* entries as appropriate specifically for diff --git a/gdb/gcore-elf.h b/gdb/gcore-elf.h index 4803efdf32d..2cfeb3e8550 100644 --- a/gdb/gcore-elf.h +++ b/gdb/gcore-elf.h @@ -37,7 +37,7 @@ extern void gcore_elf_build_thread_register_notes bfd *obfd, gdb::unique_xmalloc_ptr *note_data, int *note_size); /* Add content to *NOTE_DATA (and update *NOTE_SIZE) to include a note - containing the current targtet's target description. The core file is + containing the current target's target description. The core file is being written to OBFD. If something goes wrong then *NOTE_DATA can be set to nullptr. */ diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index f0399c2fa88..3d97919bc9b 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -201,7 +201,7 @@ gdbarch_tdep (struct gdbarch *gdbarch) The more traditional mega-struct containing architecture specific data for all the various GDB components was also considered. Since GDB is built from a variable number of (fairly independent) - components it was determined that the global aproach was not + components it was determined that the global approach was not applicable. */ @@ -301,7 +301,7 @@ extern struct gdbarch *gdbarch_alloc (const struct gdbarch_info *info, /* Helper function. Free a partially-constructed ``struct gdbarch''. - It is assumed that the caller freeds the ``struct + It is assumed that the caller frees the ``struct gdbarch_tdep''. */ extern void gdbarch_free (struct gdbarch *); diff --git a/gdb/gdbcmd.h b/gdb/gdbcmd.h index 9f6765670c1..5824030efe8 100644 --- a/gdb/gdbcmd.h +++ b/gdb/gdbcmd.h @@ -2,7 +2,7 @@ of the possible command languages. If necessary, a hook (that may be present or not) must be used and set to the appropriate routine by any command language that cares about it. If you are having to include this - file you are possibly doing things the old way. This file will dissapear. + file you are possibly doing things the old way. This file will disappear. fnasser@redhat.com */ /* Header file for GDB-specific command-line stuff. diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 319a7731bca..8071d6b97ae 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -2429,7 +2429,7 @@ struct struct_elt 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. @@ -2446,7 +2446,7 @@ extern struct_elt lookup_struct_elt (struct type *, const char *, int); 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. diff --git a/gdb/gmp-utils.c b/gdb/gmp-utils.c index 13fa61d61e3..b5e06284342 100644 --- a/gdb/gmp-utils.c +++ b/gdb/gmp-utils.c @@ -153,9 +153,9 @@ gdb_mpz::export_bits (gdb::array_view buf, int endian, bool unsigned_p /* Do the export into a buffer allocated by GMP itself; that way, we can detect cases where BUF is not large enough to export - our value, and thus avoid a buffer overlow. Normally, this should + our value, and thus avoid a buffer overflow. Normally, this should never happen, since we verified earlier that the buffer is large - enough to accomodate our value, but doing this allows us to be + enough to accommodate our value, but doing this allows us to be extra safe with the export. After verification that the export behaved as expected, we will diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 13890539581..90caee8a9d4 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1428,7 +1428,7 @@ gnu_nat_target::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. */ static struct inf *waiting_inf; @@ -1561,7 +1561,7 @@ rewait: else if (kind == TARGET_WAITKIND_STOPPED && w->status.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"); } diff --git a/gdb/guile/scm-param.c b/gdb/guile/scm-param.c index 0bb87b0d3ed..d49cc3cebcb 100644 --- a/gdb/guile/scm-param.c +++ b/gdb/guile/scm-param.c @@ -101,7 +101,7 @@ struct param_smob space, it will be freed with the smob. */ const char * const *enumeration; - /* The set_func funcion or #f if not specified. + /* The set_func function or #f if not specified. This function is called *after* the parameter is set. It returns a string that will be displayed to the user. */ SCM set_func; diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 2c73c123c3a..6a14d0dcfe8 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -8656,7 +8656,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_fetch_pointer_argument (gdbarch, i386_fetch_pointer_argument); /* Hook the function epilogue frame unwinder. This unwinder is - appended to the list first, so that it supercedes the DWARF + appended to the list first, so that it supersedes the DWARF unwinder in function epilogues (where the DWARF unwinder currently fails). */ if (info.bfd_arch_info->bits_per_word == 32) diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 642ac89b240..bf52020ab67 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -387,8 +387,8 @@ extern int i386_ax_pseudo_register_collect (struct gdbarch *gdbarch, /* Segment selectors. */ #define I386_SEL_RPL 0x0003 /* Requester's Privilege Level mask. */ -#define I386_SEL_UPL 0x0003 /* User Privilige Level. */ -#define I386_SEL_KPL 0x0000 /* Kernel Privilige Level. */ +#define I386_SEL_UPL 0x0003 /* User Privilege Level. */ +#define I386_SEL_KPL 0x0000 /* Kernel Privilege Level. */ /* The length of the longest i386 instruction (according to include/asm-i386/kprobes.h in Linux 2.6. */ diff --git a/gdb/ia64-tdep.h b/gdb/ia64-tdep.h index ec7715d6404..32393198615 100644 --- a/gdb/ia64-tdep.h +++ b/gdb/ia64-tdep.h @@ -204,7 +204,7 @@ class frame_info_ptr; struct regcache; -/* A struction containing pointers to all the target-dependent operations +/* A struct containing pointers to all the target-dependent operations performed to setup an inferior function call. */ struct ia64_infcall_ops diff --git a/gdb/infcall.c b/gdb/infcall.c index 233ef5f29e9..ddf325a62a5 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -1361,7 +1361,7 @@ call_function_by_hand_dummy (struct value *function, /* Get the return value. */ retval = sm->return_value; - /* Restore the original FSM and clean up / destroh the call FSM. + /* Restore the original FSM and clean up / destroy the call FSM. Doing it in this order ensures that if the call to clean_up throws, the original FSM is properly restored. */ { diff --git a/gdb/interps.h b/gdb/interps.h index ebe078eb739..3a0e8372e10 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -98,7 +98,7 @@ public: /* Notify the interpreter that the current inferior has stopped normally. */ virtual void on_normal_stop (bpstat *bs, int print_frame) {} - /* Notify the intepreter that the current inferior has exited normally with + /* Notify the interpreter that the current inferior has exited normally with status STATUS. */ virtual void on_exited (int status) {} diff --git a/gdb/language.h b/gdb/language.h index 0ebd4c1d957..2b44ff6ffd3 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -631,7 +631,7 @@ struct language_defn { return false; } /* Is this language case sensitive? The return value from this function - provides the automativ setting for 'set case-sensitive', as a + provides the automatic setting for 'set case-sensitive', as a consequence, a user is free to override this setting if they want. */ virtual enum case_sensitivity case_sensitivity () const diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index e966fb4c3e8..5befe18776e 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -139,7 +139,7 @@ m2_language::language_arch_info (struct gdbarch *gdbarch, lai->set_bool_type (builtin->builtin_bool, "BOOLEAN"); } -/* See languge.h. */ +/* See language.h. */ void m2_language::printchar (int c, struct type *type, diff --git a/gdb/macroexp.h b/gdb/macroexp.h index 87ee9bbb1ef..c1be1722af3 100644 --- a/gdb/macroexp.h +++ b/gdb/macroexp.h @@ -57,7 +57,7 @@ gdb::unique_xmalloc_ptr 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 diff --git a/gdb/macrotab.h b/gdb/macrotab.h index ee73613c80d..ecbf312aa67 100644 --- a/gdb/macrotab.h +++ b/gdb/macrotab.h @@ -95,7 +95,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 diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py index 6226e584383..c8e5a94b5f9 100755 --- a/gdb/make-target-delegates.py +++ b/gdb/make-target-delegates.py @@ -249,7 +249,7 @@ def munge_type(typename: str): typename = re.sub("[ ()<>:]", "_", typename) typename = re.sub("[*]", "p", typename) typename = re.sub("&", "r", typename) - # Identifers with double underscores are reserved to the C++ + # Identifiers with double underscores are reserved to the C++ # implementation. typename = re.sub("_+", "_", typename) # Avoid ending the function name with underscore, for diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 697ce0b5b1a..aaa0479bc66 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -2634,7 +2634,7 @@ parse_partial_symbols (minimal_symbol_reader &reader, pst->legacy_expand_psymtab = mdebug_expand_psymtab; /* Set up language for the pst. - The language from the FDR is used if it is unambigious (e.g. cfront + The language from the FDR is used if it is unambiguous (e.g. cfront with native cc and g++ will set the language to C). Otherwise we have to deduce the language from the filename. Native ecoff has every header file in a separate FDR, so diff --git a/gdb/mi/mi-common.h b/gdb/mi/mi-common.h index dfb83535b0b..6f8e57aa936 100644 --- a/gdb/mi/mi-common.h +++ b/gdb/mi/mi-common.h @@ -20,7 +20,7 @@ #define MI_MI_COMMON_H /* Represents the reason why GDB is sending an asynchronous command to - the front end. NOTE: When modifing this, don't forget to update + the front end. NOTE: When modifying this, don't forget to update gdb.texinfo! */ enum async_reply_reason { diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 6bbee0556ae..4044daa2413 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -5680,7 +5680,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); @@ -6126,7 +6126,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); diff --git a/gdb/namespace.h b/gdb/namespace.h index b8d4be88a28..53aedd4d1c9 100644 --- a/gdb/namespace.h +++ b/gdb/namespace.h @@ -110,7 +110,7 @@ struct using_direct EXCLUDES entries, the last entry is NULL. */ const char *excludes[1]; - /* Returns true if the using_direcive USING_DIR is valid in CURR_LINE. + /* Returns true if the using_directive USING_DIR is valid in CURR_LINE. Because current GCC (at least version 12.2) sets the decl_line as the last line in the current block, we need to take this into consideration when checking the validity, by comparing it to diff --git a/gdb/nat/aarch64-hw-point.c b/gdb/nat/aarch64-hw-point.c index dd0ffc32634..6747e61e026 100644 --- a/gdb/nat/aarch64-hw-point.c +++ b/gdb/nat/aarch64-hw-point.c @@ -314,7 +314,7 @@ aarch64_dr_state_insert_one_point (ptid_t ptid, { gdb_assert (dr_ref_count[i] == 0); idx = i; - /* no break; continue hunting for an exising one. */ + /* no break; continue hunting for an existing one. */ } else if (dr_addr_p[i] == addr && (dr_addr_orig_p == nullptr || dr_addr_orig_p[i] == addr_orig) diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 3f63ade17f7..55898141f78 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -321,7 +321,7 @@ get_core_array_size_using_sys_possible () static size_t get_core_array_size () { - /* Using /sys/.../possible is prefered, because it handles the case where + /* Using /sys/.../possible is preferred, because it handles the case where we are in a container that has access to a subset of the host's cores. It will return a size that considers all the CPU cores available to the host. If that fials for some reason, fall back to sysconf. */ diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c index 1ddca72d5b1..b80c7b88893 100644 --- a/gdb/nat/linux-ptrace.c +++ b/gdb/nat/linux-ptrace.c @@ -309,7 +309,7 @@ linux_child_function (void *child_stack) ptrace (PTRACE_TRACEME, 0, (PTRACE_TYPE_ARG3) 0, (PTRACE_TYPE_ARG4) 0); kill (getpid (), SIGSTOP); - /* This code is only reacheable by the child (grandchild's parent) + /* This code is only reachable by the child (grandchild's parent) process. */ _exit (0); } diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c index 1d66a971c01..0fd9c7f7d03 100644 --- a/gdb/or1k-linux-tdep.c +++ b/gdb/or1k-linux-tdep.c @@ -31,7 +31,7 @@ /* Define the general register mapping. The kernel and GDB put registers r1 to r31 in the same place. The NPC register is stored at index 32 in - linux and 33 in GDB, in GDB 32 is for PPC which is not popupated from linux. + linux and 33 in GDB, in GDB 32 is for PPC which is not populated from linux. Register r0 is always 0 and can be ignored. */ static const struct regcache_map_entry or1k_linux_gregmap[] = diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 42885deb45e..ee899a5c049 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -454,7 +454,7 @@ private: UNAVAILABLE can indicate that the kernel doesn't support any of the two sets of requests or that there was an error when we tried to - detect wich interface is available. */ + detect which interface is available. */ enum debug_reg_interface { @@ -2880,7 +2880,7 @@ ppc_linux_nat_target::low_prepare_to_resume (struct lwp_info *lp) perror_with_name (_("Error deleting hardware " "breakpoint or watchpoint")); - /* We erase the entries one at a time after successfuly + /* We erase the entries one at a time after successfully removing the corresponding slot form the thread so that if we throw an exception above in a future iteration the map remains consistent. */ diff --git a/gdb/python/python.c b/gdb/python/python.c index 517cea7e58f..505fc4412d1 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -2634,7 +2634,7 @@ Set the value of the convenience variable $NAME." }, #ifdef TUI { "register_window_type", (PyCFunction) gdbpy_register_tui_window, METH_VARARGS | METH_KEYWORDS, - "register_window_type (NAME, CONSTRUCSTOR) -> None\n\ + "register_window_type (NAME, CONSTRUCTOR) -> None\n\ Register a TUI window constructor." }, #endif /* TUI */ diff --git a/gdb/remote.c b/gdb/remote.c index b25a0b72959..02ff3a12bdb 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3197,7 +3197,7 @@ remote_target::thread_name (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. */ @@ -5724,7 +5724,7 @@ remote_target::remote_query_supported () getpkt (&rs->buf, 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 (m_features.packet_ok (rs->buf, PACKET_qSupported) == PACKET_ERROR) { diff --git a/gdb/rs6000-aix-nat.c b/gdb/rs6000-aix-nat.c index f496ecca65e..e28a0e71f81 100644 --- a/gdb/rs6000-aix-nat.c +++ b/gdb/rs6000-aix-nat.c @@ -465,7 +465,7 @@ rs6000_nat_target::follow_fork (inferior *child_inf, ptid_t child_ptid, follow_child, detach_fork); /* If we detach fork and follow child we do not want the child - process to geneate events that ptrace can trace. Hence we + process to generate events that ptrace can trace. Hence we detach it. */ if (detach_fork && !follow_child) diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index d4a7b22bc4f..829f55981ca 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -900,7 +900,7 @@ rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch, } catch (const gdb_exception_error &e) { - /* 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; diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 966b75b8baa..ff83743da36 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -7622,7 +7622,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) valid_p &= tdesc_numbered_register (feature, tdesc_data.get (), 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.get (), PPC_MSR_REGNUM, msr_names); diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 7de55f6d7ac..c0aa5d8d0b9 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -557,7 +557,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; @@ -1127,7 +1127,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; diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 59bb086821e..df6a695f646 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -374,7 +374,7 @@ struct svr4_info probes-based interface. The namespace is represented by the address of its corresponding - r_debug[_ext] object. We get the namespace id as agrument to the + r_debug[_ext] object. We get the namespace id as argument to the 'reloc_complete' probe but we don't get it when scanning the load map on attach. @@ -1912,7 +1912,7 @@ solist_update_incremental (svr4_info *info, CORE_ADDR debug_base, covers one namespace. We expect gdbserver to provide updates for the namespace that - contains LM, which whould be this namespace... */ + contains LM, which would be this namespace... */ so_list *sos = nullptr; if (library_list.solib_lists.find (debug_base) != library_list.solib_lists.end ()) @@ -2684,7 +2684,7 @@ read_program_headers_from_bfd (bfd *abfd) 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 diff --git a/gdb/stubs/m32r-stub.c b/gdb/stubs/m32r-stub.c index e52188edc71..7f0614a8dbd 100644 --- a/gdb/stubs/m32r-stub.c +++ b/gdb/stubs/m32r-stub.c @@ -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\ diff --git a/gdb/stubs/m68k-stub.c b/gdb/stubs/m68k-stub.c index 826f92288d5..47eca001d12 100644 --- a/gdb/stubs/m68k-stub.c +++ b/gdb/stubs/m68k-stub.c @@ -352,7 +352,7 @@ saveFrameLoop: movew sp@+,a1@+ dbf d0,saveFrameLoop # -# now that the stack has been clenaed, +# now that the stack has been cleaned, # save the a7 in use at time of exception movel sp,_superStack /* save supervisor sp */ andiw #0x2000,d1 /* were we in supervisor mode ? */ diff --git a/gdb/stubs/sh-stub.c b/gdb/stubs/sh-stub.c index 03a865eeded..60dc0b14389 100644 --- a/gdb/stubs/sh-stub.c +++ b/gdb/stubs/sh-stub.c @@ -1293,7 +1293,7 @@ static __inline__ void code_for_catch_exception(int n) if (n == CPU_BUS_ERROR_VEC) { - /* Exception 9 (bus errors) are disasbleable - so that you + /* Exception 9 (bus errors) are disableable - so that you can probe memory and get zero instead of a fault. Because the vector table may be in ROM we don't revector the interrupt like all the other stubs, we check in here diff --git a/gdb/stubs/z80-stub.c b/gdb/stubs/z80-stub.c index c85b28c179d..cb5a8fdc27c 100644 --- a/gdb/stubs/z80-stub.c +++ b/gdb/stubs/z80-stub.c @@ -121,7 +121,7 @@ #define DBG_NMI_EX EX_HWBREAK #define DBG_INT_EX EX_SIGINT -/* Define following macro to statement, which will be exectuted after entering to +/* Define following macro to statement, which will be executed after entering to stub_main function. Statement should include semicolon. */ //#define DBG_ENTER debug_enter(); @@ -912,7 +912,7 @@ process_v (char *buffer) FASTCALL if (buffer[5] == '?') { /* result response will be "vCont;c;C"; C action must be - supported too, because GDB reguires at lease both of them */ + supported too, because GDB requires at lease both of them */ memcpy (&buffer[5], ";c;C", 5); return 0; } diff --git a/gdb/symfile.c b/gdb/symfile.c index 96239679c77..3a0aee163ff 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -300,7 +300,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); diff --git a/gdb/target.h b/gdb/target.h index 2dac86c394d..5f9a2a2d97a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -2034,7 +2034,7 @@ extern bool target_have_steppable_watchpoint (); /* Provide defaults for hardware watchpoint functions. */ -/* If the *_hw_beakpoint functions have not been defined +/* If the *_hw_breakpoint functions have not been defined elsewhere use the definitions in the target vector. */ /* Returns positive if we can set a hardware watchpoint of type TYPE. diff --git a/gdb/target/waitstatus.h b/gdb/target/waitstatus.h index 0a88b869044..4d23f1cbff4 100644 --- a/gdb/target/waitstatus.h +++ b/gdb/target/waitstatus.h @@ -77,7 +77,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 diff --git a/gdb/testsuite/gdb.arch/e500-regs.exp b/gdb/testsuite/gdb.arch/e500-regs.exp index ac196ff4722..64b00905c06 100644 --- a/gdb/testsuite/gdb.arch/e500-regs.exp +++ b/gdb/testsuite/gdb.arch/e500-regs.exp @@ -71,7 +71,7 @@ for {set i 0} {$i < 32} {incr i 1} { gdb_test "info reg ev$i" "ev$i.*$vector_register" "info reg ev$i" } -# Test wether the GPRs are updated accordingly. (GPRs are just the lower +# Test whether the GPRs are updated accordingly. (GPRs are just the lower # 32 bits of the EV registers.) set general_register "0x1\[ \t\]+1" diff --git a/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c b/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c index e83c490cfe5..6f0f620eeb2 100644 --- a/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c +++ b/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c @@ -17,7 +17,7 @@ /* This file was generated from glibc's 2.31 _exit.c, by doing a glibc build on ppc64le-linux, copying the command line, adding -g0 -save-temps and - recuding the _exit.i file. */ + reducing the _exit.i file. */ void _exit (int status); diff --git a/gdb/testsuite/gdb.base/all-architectures.exp.tcl b/gdb/testsuite/gdb.base/all-architectures.exp.tcl index 2149650ea56..8e0179cb039 100644 --- a/gdb/testsuite/gdb.base/all-architectures.exp.tcl +++ b/gdb/testsuite/gdb.base/all-architectures.exp.tcl @@ -182,7 +182,7 @@ proc gdb_test_no_output_osabi {cmd test} { # It'd be nicer/safer to restart GDB on each iteration, but, that # increases the testcase's run time several times fold. At the time -# of writting, it'd jump from 20s to 4min on x86-64 GNU/Linux with +# of writing, it'd jump from 20s to 4min on x86-64 GNU/Linux with # --enable-targets=all. set num_slices 8 diff --git a/gdb/testsuite/gdb.base/bigcore.c b/gdb/testsuite/gdb.base/bigcore.c index 27ad0a67027..e1d6defc38e 100644 --- a/gdb/testsuite/gdb.base/bigcore.c +++ b/gdb/testsuite/gdb.base/bigcore.c @@ -222,7 +222,7 @@ main () the file for unmodified pages - while others handle this poorly - writing out all pages including those that weren't modified. */ - print_string ("Alocating the entire heap ...\n"); + print_string ("Allocating the entire heap ...\n"); { size_t chunk_size; unsigned long chunks_allocated = 0; diff --git a/gdb/testsuite/gdb.base/break-always.exp b/gdb/testsuite/gdb.base/break-always.exp index 80e8e13b446..1ea60d47778 100644 --- a/gdb/testsuite/gdb.base/break-always.exp +++ b/gdb/testsuite/gdb.base/break-always.exp @@ -67,7 +67,7 @@ gdb_test "p /x \$shadow = *(char *) $bp_address" \ # Overwrite memory where the breakpoint is planted. GDB should update # its memory breakpoint's shadows, to account for the new contents, # and still leave the breakpoint insn planted. Try twice with -# different values, in case we happen to be writting exactly what was +# different values, in case we happen to be writing exactly what was # there already. foreach test_value {0 1} { set write_test "write $test_value to breakpoint's address" diff --git a/gdb/testsuite/gdb.base/call-ar-st.c b/gdb/testsuite/gdb.base/call-ar-st.c index 6c1e3b95fa1..4eac3f4d4cb 100644 --- a/gdb/testsuite/gdb.base/call-ar-st.c +++ b/gdb/testsuite/gdb.base/call-ar-st.c @@ -22,7 +22,7 @@ * -- call print_long_arg_list from inside print_small_structs ***************************************************************************/ -/* Some enumerated types -- used to test that the structureal data type is +/* Some enumerated types -- used to test that the structural data type is * retrieved for function arguments with typedef data types. */ typedef int id_int; diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 3c5e8b7598d..aca8d5fcf36 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -451,7 +451,7 @@ gdb_test "rbreak" "rbreak" gdb_test "restore" "You can't do that without a process to debug\." #test return -# The middle case accomodated the obsolete a29k, where doing the "ni" +# The middle case accommodated the obsolete a29k, where doing the "ni" # above causes an initial stack to be created. gdb_test "return" "No selected frame..*" diff --git a/gdb/testsuite/gdb.base/exitsignal.exp b/gdb/testsuite/gdb.base/exitsignal.exp index 24e4aa1f3ae..47b1c2df130 100644 --- a/gdb/testsuite/gdb.base/exitsignal.exp +++ b/gdb/testsuite/gdb.base/exitsignal.exp @@ -17,7 +17,7 @@ # purpose of this checking is to ensure that the variables are # mutually exclusive, i.e., that when $_exitsignal is set, $_exitcode # is not, and vice-versa. This mutual exclusion happens because if an -# inferior exited (either successfuly or not), it certainly was not +# inferior exited (either successfully or not), it certainly was not # killed by a signal. However, if it was killed by an uncaught # signal, then there is no way for it to have exited. diff --git a/gdb/testsuite/gdb.base/fork-print-inferior-events.exp b/gdb/testsuite/gdb.base/fork-print-inferior-events.exp index 33ac172c53b..b7b3d555776 100644 --- a/gdb/testsuite/gdb.base/fork-print-inferior-events.exp +++ b/gdb/testsuite/gdb.base/fork-print-inferior-events.exp @@ -47,7 +47,7 @@ if { [build_executable "failed to prepare" $testfile $srcfile debug] } { set reading_re "(Reading.*from remote target\\.\\.\\.\r\n)*" set exited_normally_re "${reading_re}\\\[Inferior $decimal \\(.*\\) exited normally\\\]" # gdbserver produces a slightly different message when attaching after -# a fork, so we have to tweak the regexp to accomodate that. +# a fork, so we have to tweak the regexp to accommodate that. set attach_child_re "${reading_re}\\\[Attaching after .* fork to child .*\\\]\r\n" set detach_child_re "${reading_re}\\\[Detaching after fork from child .*\\\]\r\n" set detach_parent_re "${reading_re}\\\[Detaching after fork from parent .*\\\]\r\n" diff --git a/gdb/testsuite/gdb.base/scope0.c b/gdb/testsuite/gdb.base/scope0.c index 3aad48de2d7..7a38a53ceb0 100644 --- a/gdb/testsuite/gdb.base/scope0.c +++ b/gdb/testsuite/gdb.base/scope0.c @@ -113,7 +113,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); diff --git a/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp b/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp index 48a07438759..0495a820940 100644 --- a/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp +++ b/gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp @@ -255,7 +255,7 @@ proc run_tests {lang} { # We try all combinations, even those that don't # parse, or are invalid, to catch the case of a # regression making them inadvertently valid. For - # example, these convertions are invalid: + # example, these conversions are invalid: # # float <-> array [iff sizeof pointer != sizeof float] # array -> function (not function pointer) diff --git a/gdb/testsuite/gdb.cp/cpexprs.cc b/gdb/testsuite/gdb.cp/cpexprs.cc index bcb5900e00c..e4f6612f0fd 100644 --- a/gdb/testsuite/gdb.cp/cpexprs.cc +++ b/gdb/testsuite/gdb.cp/cpexprs.cc @@ -260,7 +260,7 @@ public: void operator delete[] (void* ptr) { // base::operator delete[] free (ptr); } - base const* operator-> (void) const { // base::opeartor-> + base const* operator-> (void) const { // base::operator-> return this; } int operator->* (base const& b) const { // base::operator->* diff --git a/gdb/testsuite/gdb.cp/oranking.cc b/gdb/testsuite/gdb.cp/oranking.cc index 135761016cc..c3f185b810a 100644 --- a/gdb/testsuite/gdb.cp/oranking.cc +++ b/gdb/testsuite/gdb.cp/oranking.cc @@ -14,7 +14,7 @@ dummy () free (p); } -/* 1. A standard covnersion sequence is better than a user-defined sequence +/* 1. A standard conversion sequence is better than a user-defined sequence which is better than an elipses conversion sequence. */ class A{}; @@ -37,7 +37,7 @@ int test2(){ return foo2(b); // 13 } -/* 2. Standard Conversion squence S1 is better than standard Conversion +/* 2. Standard Conversion sequence S1 is better than standard Conversion S2 if: */ // - S1 has a better rank than S2 @@ -58,7 +58,7 @@ int test4 () { } // - S1 and S2 have the same rank but: -// - S2 is a conversion of pointer or memeber-pointer to bool +// - S2 is a conversion of pointer or member-pointer to bool int foo5 (bool) { return 25; } int foo5 (void*) { return 26; } int test5 () { diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index ce17b8dc268..07c6f07efa7 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . # Print a 2 dimensional assumed shape array. We pass different slices -# of the array to a subroutine and print the array as recieved within +# of the array to a subroutine and print the array as received within # the subroutine. This should exercise GDB's ability to handle # different strides for the different dimensions. diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.exp b/gdb/testsuite/gdb.multi/multi-arch-exec.exp index 85d0cce327c..5ae23ab808f 100644 --- a/gdb/testsuite/gdb.multi/multi-arch-exec.exp +++ b/gdb/testsuite/gdb.multi/multi-arch-exec.exp @@ -166,7 +166,7 @@ proc do_test { first_arch mode selected_thread } { gdb_test_no_output "set follow-exec-mode $mode" - # Test that GDB updates the target description / arch successfuly + # Test that GDB updates the target description / arch successfully # after the exec. gdb_test "continue" "Breakpoint $bkptno_numopt_re, main.*" "continue across exec that changes architecture" } diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp index b7603162cf2..7b84d14a976 100644 --- a/gdb/testsuite/gdb.python/py-shared.exp +++ b/gdb/testsuite/gdb.python/py-shared.exp @@ -51,14 +51,14 @@ runto [gdb_get_line_number "Break to end."] # Test gdb.solib_name gdb_test "p &func1" "" "func1 address" -gdb_py_test_silent_cmd "python func1 = gdb.history(0)" "Aquire func1 address" 1 +gdb_py_test_silent_cmd "python func1 = gdb.history(0)" "Acquire func1 address" 1 gdb_test "python print (gdb.solib_name(int(func1)))" "py-shared-sl.sl" \ "test func1 solib location" gdb_test "python print (gdb.solib_name(func1))" "py-shared-sl.sl" \ "test func1 solib location using Value" gdb_test "p &main" "" "main address" -gdb_py_test_silent_cmd "python main = gdb.history(0)" "Aquire main address" 1 +gdb_py_test_silent_cmd "python main = gdb.history(0)" "Acquire main address" 1 gdb_test "python print (gdb.solib_name(int(main)))" "None" "test main solib location" if {[is_lp64_target]} { diff --git a/gdb/testsuite/gdb.python/py-xmethods.cc b/gdb/testsuite/gdb.python/py-xmethods.cc index 34685e25a50..d7573d9eeaa 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.cc +++ b/gdb/testsuite/gdb.python/py-xmethods.cc @@ -137,7 +137,7 @@ G::mul (const T1 t1) return t1 * t; } -} // namespaxe dop +} // namespace dop using namespace dop; diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 584e52c0661..062f87dfef6 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -188,7 +188,7 @@ gdb_test "python print (a)" ".*aliases -- User-defined aliases of other commands # Test PR 12212, using InfThread.selected_thread() when no inferior is # loaded. -gdb_py_test_silent_cmd "python nothread = gdb.selected_thread()" "Attempt to aquire thread with no inferior" 1 +gdb_py_test_silent_cmd "python nothread = gdb.selected_thread()" "Attempt to acquire thread with no inferior" 1 gdb_test "python print (nothread is None)" "True" "ensure that no threads are returned" gdb_test_multiline "register atexit function" \ diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp b/gdb/testsuite/gdb.threads/thread-specific-bp.exp index 2d1c71a68e3..8929f194844 100644 --- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp +++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp @@ -72,7 +72,7 @@ proc check_thread_specific_breakpoint {non_stop} { gdb_breakpoint "main thread $start_thre" gdb_test "info break" ".*breakpoint.*thread $start_thre" "breakpoint set" - # Set breakpoint at a place only reacheable after the "start" + # Set breakpoint at a place only reachable after the "start" # thread exits. gdb_breakpoint "end" diff --git a/gdb/testsuite/lib/completion-support.exp b/gdb/testsuite/lib/completion-support.exp index 275f8874f15..ea73c3bb367 100644 --- a/gdb/testsuite/lib/completion-support.exp +++ b/gdb/testsuite/lib/completion-support.exp @@ -318,7 +318,7 @@ proc test_gdb_complete_multiple { # Test that all the substring prefixes of INPUT from [0..START) to # [0..END) complete to COMPLETION_RE (a regular expression). If END -# is ommitted, default to the length of INPUT. +# is omitted, default to the length of INPUT. proc test_complete_prefix_range_re {input completion_re start {end -1}} { if {$end == -1} { @@ -345,7 +345,7 @@ proc test_complete_prefix_range_re {input completion_re start {end -1}} { } # Test that all the substring prefixes of COMPLETION from [0..START) -# to [0..END) complete to COMPLETION. If END is ommitted, default to +# to [0..END) complete to COMPLETION. If END is omitted, default to # the length of COMPLETION. proc test_complete_prefix_range {completion start {end -1}} { diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 294d136a547..62e0b0b3db5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1894,7 +1894,7 @@ proc gdb_test_list_exact { cmd name elm_find_regexp elm_extract_regexp result_ma # # Both inferior and gdb patterns must match for a PASS. # -# If MESSAGE is ommitted, then COMMAND will be used as the message. +# If MESSAGE is omitted, then COMMAND will be used as the message. # # Returns: # 1 if the test failed, diff --git a/gdb/testsuite/lib/prelink-support.exp b/gdb/testsuite/lib/prelink-support.exp index 747bb3adfb9..40f2fe552c8 100644 --- a/gdb/testsuite/lib/prelink-support.exp +++ b/gdb/testsuite/lib/prelink-support.exp @@ -70,7 +70,7 @@ proc symlink_resolve {file} { } # Copy SRC to DEST, resolving any symlinks in SRC. Return nonzero iff -# the copy was succesful. +# the copy was successful. # # This function is guaranteed to never raise any exception, even when the copy # fails. @@ -107,7 +107,7 @@ proc file_copy {src dest} { # depend on system libraries. To properly prelink an executable, all # of its dynamically linked libraries must be prelinked as well. If # the executable depends on some system libraries, we may not have -# sufficient write priviledges on these files to perform the prelink. +# sufficient write privileges on these files to perform the prelink. # This is why we make a copy of these shared libraries, and link the # executable against these copies instead. # diff --git a/gdb/testsuite/lib/read1.c b/gdb/testsuite/lib/read1.c index 4b8bec192b3..2fc1bdedddd 100644 --- a/gdb/testsuite/lib/read1.c +++ b/gdb/testsuite/lib/read1.c @@ -31,7 +31,7 @@ /* Default READMORE sleep time in miliseconds. */ #define READMORE_SLEEP_DEFAULT 10 -/* Helper function. Intialize *METHOD according to environment variable +/* Helper function. Initialize *METHOD according to environment variable READMORE_METHOD, and *SLEEP according to environment variable READMORE_SLEEP. */ diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 50a238401df..3a8fcfa5d27 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -102,7 +102,7 @@ tui_register_format (frame_info_ptr frame, int regnum) } /* Get the register value from the given frame and format it for the - display. When changep is set, check if the new register value has + display. When changedp is set, check if the new register value has changed with respect to the previous call. */ static void tui_get_register (frame_info_ptr frame, diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 82a023d09fe..385e6e5d68d 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -77,7 +77,7 @@ tui_win_info::refresh_window () tui_wrefresh (handle.get ()); } -/* Draw a border arround the window. */ +/* Draw a border around the window. */ static void box_win (struct tui_win_info *win_info, bool highlight_flag) diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index a3714fce46f..dd857656bfc 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -178,7 +178,7 @@ tui_source_window_base::update_source_window_as_is } -/* Function to ensure that the source and/or disassemly windows +/* Function to ensure that the source and/or disassembly windows reflect the input address. */ void tui_update_source_windows_with_addr (struct gdbarch *gdbarch, CORE_ADDR addr) diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 10cf811a41e..373d1673e3a 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -225,7 +225,7 @@ tui_rl_command_key (int count, int key) rl_newline (1, '\n'); /* Switch to gdb command mode while executing the command. - This way the gdb's continue prompty will be displayed. */ + This way the gdb's continue prompt will be displayed. */ tui_set_key_mode (TUI_ONE_COMMAND_MODE); return 0; } diff --git a/gdb/typeprint.h b/gdb/typeprint.h index aa1a5872ca3..6d70d4c1c1d 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -68,7 +68,7 @@ struct print_offset_data /* The offset to be applied to bitpos when PRINT_OFFSETS is true. This is needed for when we are printing nested structs and want to make sure that the printed offset for each field carries over - the offset of the outter struct. */ + the offset of the outer struct. */ unsigned int offset_bitpos = 0; /* END_BITPOS is the one-past-the-end bit position of the previous diff --git a/gdb/unittests/gmp-utils-selftests.c b/gdb/unittests/gmp-utils-selftests.c index 384ca2df212..d06f2004a8b 100644 --- a/gdb/unittests/gmp-utils-selftests.c +++ b/gdb/unittests/gmp-utils-selftests.c @@ -29,7 +29,7 @@ namespace selftests { This function limits itself to values which are in range (out-of-range values will be tested separately). In doing so, it tries to be reasonably - exhaustive, by testing the edges, as well as a resonable set of values + exhaustive, by testing the edges, as well as a reasonable set of values including negative ones, zero, and positive values. */ static void diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c index 246631f9530..1130266194d 100644 --- a/gdb/unittests/vec-utils-selftests.c +++ b/gdb/unittests/vec-utils-selftests.c @@ -64,7 +64,7 @@ unordered_remove_tests () } } /* namespace vector_utils_tests */ -} /* amespace selftests */ +} /* namespace selftests */ void _initialize_vec_utils_selftests (); void diff --git a/gdb/valops.c b/gdb/valops.c index 22be4805a52..be34b766292 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1347,7 +1347,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_CODE_PTR) { diff --git a/gdb/varobj.c b/gdb/varobj.c index dd39784a21c..f37618a6e17 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2391,7 +2391,7 @@ varobj_invalidate_if_uses_objfile (struct objfile *objfile) { /* The varobj is tied to a block which is going away. There is no way to reconstruct something later, so invalidate the - varobj completly and drop the reference to the block which is + varobj completely and drop the reference to the block which is being freed. */ var->root->is_valid = false; var->root->valid_block = nullptr; diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index a47a2987499..c9935d15264 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -560,7 +560,7 @@ xtensa_pseudo_register_read (struct gdbarch *gdbarch, if (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch)) return regcache->raw_read (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 (tdep->call_abi == CallAbiCall0Only @@ -648,7 +648,7 @@ xtensa_pseudo_register_write (struct gdbarch *gdbarch, if (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch)) regcache->raw_write (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 < tdep->a0_base) diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c index 4f3ad549046..9ac37329c88 100644 --- a/gdb/z80-tdep.c +++ b/gdb/z80-tdep.c @@ -748,7 +748,7 @@ z80_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size) break_insn[0] = kind | 0307; *size = 1; } - else /* kind is non-RST address, use CALL instead, but it is dungerous */ + else /* kind is non-RST address, use CALL instead, but it is dangerous */ { z80_gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); gdb_byte *p = break_insn; diff --git a/gdbserver/ax.cc b/gdbserver/ax.cc index fba5b4ad0fc..abc2d1f47ce 100644 --- a/gdbserver/ax.cc +++ b/gdbserver/ax.cc @@ -985,7 +985,7 @@ gdb_eval_agent_expr (struct eval_agent_expr_context *ctx, } /* Cache the stack top in its own variable. Much of the time we can - operate on this variable, rather than dinking with the stack. It + operate on this variable, rather than syncing with the stack. It needs to be copied to the stack when sp changes. */ top = 0; diff --git a/gdbserver/inferiors.h b/gdbserver/inferiors.h index a0ba9906097..813f6326345 100644 --- a/gdbserver/inferiors.h +++ b/gdbserver/inferiors.h @@ -70,7 +70,7 @@ struct process_info /* Private target data. */ struct process_info_private *priv = NULL; - /* DLLs thats are loaded for this proc. */ + /* DLLs that are loaded for this proc. */ std::list all_dlls; /* Flag to mark that the DLL list has changed. */ diff --git a/gdbserver/linux-arc-low.cc b/gdbserver/linux-arc-low.cc index f02884753e2..e4ee1493af4 100644 --- a/gdbserver/linux-arc-low.cc +++ b/gdbserver/linux-arc-low.cc @@ -221,7 +221,7 @@ arc_fill_gregset (struct regcache *regcache, void *buf) /* Currently ARC Linux ptrace doesn't allow writes to status32 because some of its bits are kernel mode-only and shoudn't be writable from user-space. Writing status32 from debugger could be useful, though, - so ability to write non-priviliged bits will be added to kernel + so ability to write non-privileged bits will be added to kernel sooner or later. */ /* BTA. */ diff --git a/gdbserver/linux-csky-low.cc b/gdbserver/linux-csky-low.cc index 809a4ed867c..3117556f5de 100644 --- a/gdbserver/linux-csky-low.cc +++ b/gdbserver/linux-csky-low.cc @@ -278,7 +278,7 @@ static struct regsets_info csky_regsets_info = static struct regs_info csky_regs_info = { NULL, /* FIXME: what's this */ - NULL, /* PEEKUSER/PORKUSR isn't supported by kernel > 4.x */ + NULL, /* PEEKUSER/POKEUSR isn't supported by kernel > 4.x */ &csky_regsets_info }; diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc index f8dd770b8eb..86fbc8f5d96 100644 --- a/gdbserver/linux-ppc-low.cc +++ b/gdbserver/linux-ppc-low.cc @@ -1872,7 +1872,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" diff --git a/gdbserver/mem-break.cc b/gdbserver/mem-break.cc index c669842228d..897b9a2273c 100644 --- a/gdbserver/mem-break.cc +++ b/gdbserver/mem-break.cc @@ -70,7 +70,7 @@ software breakpoints, a buffer holding a copy of the instructions that would be in memory had not been a breakpoint there (we call that the shadow memory of the breakpoint). We occasionally need to - temporarilly uninsert a breakpoint without the client knowing about + temporarily uninsert a breakpoint without the client knowing about it (e.g., to step over an internal breakpoint), so we keep an `inserted' state associated with this low level breakpoint structure. There can only be one such object for a given address. diff --git a/gdbserver/remote-utils.cc b/gdbserver/remote-utils.cc index 80310bc2c70..f54bbab0243 100644 --- a/gdbserver/remote-utils.cc +++ b/gdbserver/remote-utils.cc @@ -1198,7 +1198,7 @@ prepare_resume_reply (char *buf, ptid_t ptid, const target_waitstatus &status) we would not burden it with a thread status response. This was for the benefit of GDB 4.13 and older. However, in recent GDB versions the check (``if (cont_thread != 0)'') - does not have the desired effect because of sillyness in + does not have the desired effect because of silliness in the way that the remote protocol handles specifying a thread. Since thread support relies on qSymbol support anyway, assume GDB can handle threads. */ diff --git a/gdbserver/server.cc b/gdbserver/server.cc index 949849b63a2..c57270175b4 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -3197,7 +3197,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) diff --git a/gdbserver/server.h b/gdbserver/server.h index 730ec146530..fde7dfe7060 100644 --- a/gdbserver/server.h +++ b/gdbserver/server.h @@ -102,7 +102,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 18432 diff --git a/gdbserver/tracepoint.cc b/gdbserver/tracepoint.cc index 125a384ffb3..1f31e0cc05f 100644 --- a/gdbserver/tracepoint.cc +++ b/gdbserver/tracepoint.cc @@ -6338,7 +6338,7 @@ upload_fast_traceframes (void) unsigned int prev, counter; /* Update the token, with new counters, and the GDBserver stamp - bit. Alway reuse the current TBC index. */ + bit. Always reuse the current TBC index. */ prev = ipa_trace_buffer_ctrl_curr & GDBSERVER_FLUSH_COUNT_MASK_CURR; counter = (prev + 0x100) & GDBSERVER_FLUSH_COUNT_MASK_CURR; diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 756507709d8..3246957ec44 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -1039,7 +1039,7 @@ get_child_debug_event (DWORD *continue_status, 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. */ diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index 5e529f6febf..72c1c5144f3 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -116,7 +116,7 @@ Say a developer starts out with: ... - extern void foo (void *ptr) __atttribute__((nonnull (1))); + extern void foo (void *ptr) __attribute__((nonnull (1))); void foo (void *ptr) {} ... with the idea in mind to catch: diff --git a/gdbsupport/common-exceptions.cc b/gdbsupport/common-exceptions.cc index edc1b56181a..6b2bf74ea48 100644 --- a/gdbsupport/common-exceptions.cc +++ b/gdbsupport/common-exceptions.cc @@ -80,7 +80,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: catchers.front ().state = CATCHER_RUNNING_1; diff --git a/gdbsupport/enum-flags.h b/gdbsupport/enum-flags.h index 41ac7838f06..afee5afd88e 100644 --- a/gdbsupport/enum-flags.h +++ b/gdbsupport/enum-flags.h @@ -200,7 +200,7 @@ public: /* Convert this object to a std::string, using MAPPING as enumerator-to-string mapping array. This is not meant to be called directly. Instead, enum_flags specializations should have - their own to_string function wrapping this one, thus hidding the + their own to_string function wrapping this one, thus hiding the mapping array from callers. Note: this is defined outside the template class so it can use @@ -338,7 +338,7 @@ ENUM_FLAGS_GEN_COMPOUND_ASSIGN (operator^=, ^) make. It's important to disable comparison with unrelated types to prevent accidentally comparing with unrelated enum values, which are convertible to integer, and thus coupled with enum_flags - convertion to underlying type too, would trigger the built-in 'bool + conversion to underlying type too, would trigger the built-in 'bool operator==(unsigned, int)' operator. */ #define ENUM_FLAGS_GEN_COMP(OPERATOR_OP, OP) \ diff --git a/gdbsupport/filestuff.cc b/gdbsupport/filestuff.cc index 1724bc5d6a2..9e61fea1195 100644 --- a/gdbsupport/filestuff.cc +++ b/gdbsupport/filestuff.cc @@ -517,7 +517,7 @@ read_text_file_to_string (const char *path) std::string::size_type start_size = res.size (); constexpr int chunk_size = 1024; - /* Resize to accomodate CHUNK_SIZE bytes. */ + /* Resize to accommodate CHUNK_SIZE bytes. */ res.resize (start_size + chunk_size); int n = fread (&res[start_size], 1, chunk_size, file.get ()); diff --git a/gdbsupport/gdb_signals.h b/gdbsupport/gdb_signals.h index a70d4554af8..26bb33edb8c 100644 --- a/gdbsupport/gdb_signals.h +++ b/gdbsupport/gdb_signals.h @@ -25,7 +25,7 @@ /* Predicate to gdb_signal_to_host(). Return non-zero if the enum targ_signal SIGNO has an equivalent ``host'' representation. */ /* FIXME: cagney/1999-11-22: The name below was chosen in preference - to the shorter gdb_signal_p() because it is far less ambigious. + to the shorter gdb_signal_p() because it is far less ambiguous. In this context ``gdb_signal'' refers to GDB's internal representation of the target's set of signals while ``host signal'' refers to the target operating system's signal. Confused? */ diff --git a/gdbsupport/packed.h b/gdbsupport/packed.h index b18146c30eb..c9fcc5033cb 100644 --- a/gdbsupport/packed.h +++ b/gdbsupport/packed.h @@ -37,7 +37,7 @@ an enum -- but may not work on all compilers. */ /* Clang targeting Windows does not support attribute gcc_struct, so - we use the alternative byte array implemention there. */ + we use the alternative byte array implementation there. */ #if defined _WIN32 && defined __clang__ # define PACKED_USE_ARRAY 1 #else diff --git a/gdbsupport/pathstuff.cc b/gdbsupport/pathstuff.cc index d1a61f443d1..685f8fc3e60 100644 --- a/gdbsupport/pathstuff.cc +++ b/gdbsupport/pathstuff.cc @@ -41,7 +41,7 @@ gdb_realpath (const char *filename) But the situation is slightly more complex on Windows, due to some versions of GCC which were reported to generate paths where - backlashes (the directory separator) were doubled. For instance: + backslashes (the directory separator) were doubled. For instance: c:\\some\\double\\slashes\\dir ... instead of ... c:\some\double\slashes\dir diff --git a/gdbsupport/reference-to-pointer-iterator.h b/gdbsupport/reference-to-pointer-iterator.h index 1579d4d26e9..70222c227b3 100644 --- a/gdbsupport/reference-to-pointer-iterator.h +++ b/gdbsupport/reference-to-pointer-iterator.h @@ -36,7 +36,7 @@ struct reference_to_pointer_iterator using iterator_category = typename IteratorType::iterator_category; using difference_type = typename IteratorType::difference_type; - /* Construct a reference_to_pointer_iterator, passing args to the underyling + /* Construct a reference_to_pointer_iterator, passing args to the underlying iterator. */ template reference_to_pointer_iterator (Args &&...args) diff --git a/gdbsupport/scoped_ignore_sigttou.h b/gdbsupport/scoped_ignore_sigttou.h index aa01df25220..a3f8361512a 100644 --- a/gdbsupport/scoped_ignore_sigttou.h +++ b/gdbsupport/scoped_ignore_sigttou.h @@ -1,4 +1,4 @@ -/* Support for signoring SIGTTOU. +/* Support for ignoring SIGTTOU. Copyright (C) 2003-2023 Free Software Foundation, Inc. diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc index 0d700c03e32..0e151afb3e1 100644 --- a/gdbsupport/signals.cc +++ b/gdbsupport/signals.cc @@ -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. */