diff options
Diffstat (limited to 'gdb')
103 files changed, 136 insertions, 136 deletions
@@ -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 6402b28..d8603c4 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 237ec09..61e477b 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 8d0dec3..14b0bf1 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 ca5608f..0d5916c 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 58b3fe8..95df78f 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 d188663..f03e82e 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 d37497a..2b02757 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 1de5981..ee34fc0 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1260,7 +1260,7 @@ static struct gdbarch_registration *gdbarch_registry = NULL; std::vector<const char *> 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<const char *> arches; diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index fc0c0b1..2bdc325 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 5151fa1..dfa8169 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 ce2262c..92aec3b 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 0a520cf..6cf14ce 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 d0094bd..d5c6fdd 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 00250c2..65b493f 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 d2a415e..87eca6b 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 fdd062f..a6401c4 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 a4641bb..467bb28 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 d12f1d4..157f522 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<char> cp_func_name (const char *full_name); extern gdb::unique_xmalloc_ptr<char> 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 e1bafea..694c34a 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 73371ed..a0a08b1 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 fc55c4e..40d1f24 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 79e6dbe..aae0c6a 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 69755e9..02cb9ad 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 59a42e3..06d2eec 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 4828409..2f835dd 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 c2bce7e..b787f3a 100644 --- a/gdb/features/rs6000/powerpc-601.xml +++ b/gdb/features/rs6000/powerpc-601.xml @@ -11,7 +11,7 @@ <!DOCTYPE target SYSTEM "gdb-target.dtd"> <target> <!-- This description is slightly different from the standard - org.gnu.gdb.power.core, to accomodate mq. --> + org.gnu.gdb.power.core, to accommodate mq. --> <feature name="org.gnu.gdb.power.core"> <reg name="r0" bitsize="32"/> <reg name="r1" bitsize="32"/> diff --git a/gdb/features/rs6000/rs6000.xml b/gdb/features/rs6000/rs6000.xml index c686acd..701b3b7 100644 --- a/gdb/features/rs6000/rs6000.xml +++ b/gdb/features/rs6000/rs6000.xml @@ -13,7 +13,7 @@ <architecture>rs6000:6000</architecture> <!-- This description is slightly different from the standard - org.gnu.gdb.power.core, to accomodate mq, cnd, and cnt. --> + org.gnu.gdb.power.core, to accommodate mq, cnd, and cnt. --> <feature name="org.gnu.gdb.power.core"> <reg name="r0" bitsize="32"/> <reg name="r1" bitsize="32"/> @@ -58,7 +58,7 @@ </feature> <!-- This description is slightly different from the standard - org.gnu.gdb.power.core, to accomodate historical numbering + org.gnu.gdb.power.core, to accommodate historical numbering for fpscr. --> <feature name="org.gnu.gdb.power.fpu"> <reg name="f0" bitsize="64" type="ieee_double" regnum="32"/> diff --git a/gdb/frame.h b/gdb/frame.h index 355150a..1d7422c 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<char> 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 4803efd..2cfeb3e 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<char> *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 f0399c2..3d97919 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 9f67656..5824030 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 319a773..8071d6b 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 13fa61d..b5e0628 100644 --- a/gdb/gmp-utils.c +++ b/gdb/gmp-utils.c @@ -153,9 +153,9 @@ gdb_mpz::export_bits (gdb::array_view<gdb_byte> 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 1389053..90caee8 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 0bb87b0..d49cc3c 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 2c73c12..6a14d0d 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 642ac89..bf52020 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 ec7715d..3239319 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 233ef5f..ddf325a 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 ebe078e..3a0e837 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 0ebd4c1..2b44ff6 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 e966fb4..5befe18 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 87ee9bb..c1be172 100644 --- a/gdb/macroexp.h +++ b/gdb/macroexp.h @@ -57,7 +57,7 @@ gdb::unique_xmalloc_ptr<char> macro_expand_once (const char *source, freeing it, using xfree. We need this expand-one-token-at-a-time interface in order to - accomodate GDB's C expression parser, which may not consume the + accommodate GDB's C expression parser, which may not consume the entire string. When the user enters a command like (gdb) break *func+20 if x == 5 diff --git a/gdb/macrotab.h b/gdb/macrotab.h index ee73613..ecbf312 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 6226e58..c8e5a94 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 697ce0b..aaa0479 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 dfb8353..6f8e57a 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 6bbee05..4044daa 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 b8d4be8..53aedd4 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 dd0ffc3..6747e61 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 3f63ade..5589814 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 1ddca72..b80c7b8 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 1d66a97..0fd9c7f 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 42885de..ee899a5 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 517cea7..505fc44 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 b25a0b7..02ff3a1 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 f496ecc..e28a0e7 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 d4a7b22..829f559 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 966b75b..ff83743 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 7de55f6..c0aa5d8 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 59bb086..df6a695 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 e52188e..7f0614a 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 826f922..47eca00 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 03a865e..60dc0b1 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 c85b28c..cb5a8fd 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 9623967..3a0aee1 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 2dac86c..5f9a2a2 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 0a88b86..4d23f1c 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 ac196ff..64b0090 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 e83c490..6f0f620 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 2149650..8e0179c 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 27ad0a6..e1d6def 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 80e8e13..1ea60d4 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 6c1e3b9..4eac3f4 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 3c5e8b7..aca8d5f 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 24e4aa1..47b1c2d 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 33ac172..b7b3d55 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 3aad48d..7a38a53 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 48a0743..0495a82 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 bcb5900..e4f6612 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 1357610..c3f185b 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 ce17b8d..07c6f07 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 <http://www.gnu.org/licenses/> . # 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 85d0cce..5ae23ab 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 b760316..7b84d14 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 34685e2..d7573d9 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.cc +++ b/gdb/testsuite/gdb.python/py-xmethods.cc @@ -137,7 +137,7 @@ G<T>::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 584e52c..062f87d 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 2d1c71a..8929f19 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 275f887..ea73c3b 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 294d136..62e0b0b 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 747bb3a..40f2fe5 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 4b8bec1..2fc1bde 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 50a2384..3a8fcfa 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 82a023d..385e6e5 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 a3714fc..dd85765 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 10cf811..373d167 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 aa1a587..6d70d4c 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 384ca2d..d06f200 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 246631f..1130266 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 22be480..be34b76 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 dd39784..f37618a 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 a47a298..c9935d1 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 4f3ad54..9ac3732 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<z80_gdbarch_tdep> (gdbarch); gdb_byte *p = break_insn; |