From: Tom de Vries Date: Tue, 3 Sep 2024 15:30:37 +0000 (+0200) Subject: [gdb] Fix typos X-Git-Tag: gdb-16-branchpoint~1012 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc8c5a1d1ca379bb7e9919dac678ccd48fc1c69;p=thirdparty%2Fbinutils-gdb.git [gdb] Fix typos Fix a few typos. unconditionaly -> unconditionally gratuitiously -> gratuitously configureable -> configurable represention -> representation distiguished -> distinguished breakpointer -> breakpoint asssignments -> assignments architectual -> architectural compatibity -> compatibility adjustement -> adjustment unexcepted -> unexpected propogated -> propagated consistant -> consistent succeding -> succeeding higlight -> highlight detachs -> detach Tested by rebuilding on x86_64-linux. Approved-By: Simon Marchi --- diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index cdfaa3af05e..b9f84ee0222 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1232,7 +1232,7 @@ primary : '*' primary %prec '.' /* yylex defined in ada-lex.c: Reads one token, getting characters */ /* through lexptr. */ -/* Remap normal flex interface names (yylex) as well as gratuitiously */ +/* Remap normal flex interface names (yylex) as well as gratuitously */ /* global symbol names, so we can have multiple flex-generated parsers */ /* in gdb. */ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 83794f97825..d77fa3c54b8 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -12637,7 +12637,7 @@ ada_exception_catchpoint_cond_string (const char *excep_string, may then be set only on user-defined exceptions which have the same not-fully-qualified name (e.g. my_package.constraint_error). - To avoid this unexcepted behavior, these standard exceptions are + To avoid this unexpected behavior, these standard exceptions are systematically prefixed by "standard". This means that "catch exception constraint_error" is rewritten into "catch exception standard.constraint_error". diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c index b89b7dfa6d8..1fa7a66d043 100644 --- a/gdb/bfin-tdep.c +++ b/gdb/bfin-tdep.c @@ -465,7 +465,7 @@ bfin_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) /* TODO: Dwarf2 uses entry point value AFTER some register initializations. - We should perhaps skip such asssignments as well (R6 = R1, ...). */ + We should perhaps skip such assignments as well (R6 = R1, ...). */ return pc; } diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index ddc37196661..87a521fab83 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -452,7 +452,7 @@ public: as ``address'' (above) except for cases in which ADJUST_BREAKPOINT_ADDRESS has computed a different address at which to place the breakpoint in order to comply with a - processor's architectual constraints. */ + processor's architectural constraints. */ CORE_ADDR requested_address = 0; /* An additional address assigned with this location. This is currently diff --git a/gdb/btrace.h b/gdb/btrace.h index 34f8d2be5ce..75bc4f81ee4 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -184,7 +184,7 @@ struct btrace_function /* The instruction number offset for the first instruction in this function segment. - If INSN is empty this is the insn_offset of the succeding function + If INSN is empty this is the insn_offset of the succeeding function segment in control-flow order. */ unsigned int insn_offset; diff --git a/gdb/elfread.c b/gdb/elfread.c index c71a1423960..5371b99f051 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -977,7 +977,7 @@ elf_gnu_ifunc_resolver_stop (code_breakpoint *b) if (b_return == b) { /* No need to call find_pc_line for symbols resolving as this is only - a helper breakpointer never shown to the user. */ + a helper breakpoint never shown to the user. */ symtab_and_line sal; sal.pspace = current_inferior ()->pspace; diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index f39fe3de6a4..1cf5f486bd8 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -816,7 +816,7 @@ make_atomic_type (struct type *type) /* Replace the contents of ntype with the type *type. This changes the contents, rather than the pointer for TYPE_MAIN_TYPE (ntype); thus - the changes are propogated to all types in the TYPE_CHAIN. + the changes are propagated to all types in the TYPE_CHAIN. In order to build recursive types, it's inevitable that we'll need to update types in place --- but this sort of indiscriminate diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 7f1614cd815..6cfac08e5ac 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1221,7 +1221,7 @@ inf_update_signal_thread (struct inf *inf) } -/* Detachs from INF's inferior task, letting it run once again... */ +/* Detach from INF's inferior task, letting it run once again... */ void gnu_nat_target::inf_detach (struct inf *inf) { diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 27393043c65..b0c1ad3d0ab 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -3844,7 +3844,7 @@ ia64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, a dummy code sequence pushed on the stack to make the call, and this sequence doesn't need b0 to be set in order for our dummy breakpoint to be hit. Nonetheless, this doesn't interfere, and - it's needed for other OSes, so we do this unconditionaly. */ + it's needed for other OSes, so we do this unconditionally. */ regcache_cooked_write_unsigned (regcache, IA64_BR0_REGNUM, bp_addr); regcache_cooked_write_unsigned (regcache, sp_regnum, sp); diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c index 913889ecfb2..a4ef343f9dc 100644 --- a/gdb/mep-tdep.c +++ b/gdb/mep-tdep.c @@ -60,7 +60,7 @@ /* A quick recap for GDB hackers not familiar with the whole Toshiba Media Processor story: - The MeP media engine is a configureable processor: users can design + The MeP media engine is a configurable processor: users can design their own coprocessors, implement custom instructions, adjust cache sizes, select optional standard facilities like add-and-saturate instructions, and so on. Then, they can build custom versions of diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index f000d2fd043..006bc9270ca 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4505,7 +4505,7 @@ mips_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp, breakpoints inserted in a branch delay slot. With enough bad luck, the 4 bytes located just before our breakpoint instruction could look like a branch instruction, and thus - trigger the adjustement, and break the function call entirely. + trigger the adjustment, and break the function call entirely. So, we reserve those 4 bytes and write a nop instruction to prevent that from happening. */ nop_addr = bp_slot - sizeof (nop_insn); diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 0dbb905f1db..050f7bffa0c 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -2171,7 +2171,7 @@ sh_corefile_collect_regset (const struct regset *regset, } /* The following two regsets have the same contents, so it is tempting to - unify them, but they are distiguished by their address, so don't. */ + unify them, but they are distinguished by their address, so don't. */ const struct regset sh_corefile_gregset = { diff --git a/gdb/source-cache.c b/gdb/source-cache.c index 6af984fb88b..2815b6e711d 100644 --- a/gdb/source-cache.c +++ b/gdb/source-cache.c @@ -195,7 +195,7 @@ get_language_name (enum language lang) #endif /* HAVE_SOURCE_HIGHLIGHT */ /* Try to highlight CONTENTS from file FULLNAME in language LANG using - the GNU source-higlight library. Return true if highlighting + the GNU source-highlight library. Return true if highlighting succeeded. */ static bool diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 11585196234..46536ba21c7 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3911,7 +3911,7 @@ read_huge_number (const char **pp, int end, int *bits, } /* -0x7f is the same as 0x80. So deal with it by adding one to - the number of bits. Two's complement represention octals + the number of bits. Two's complement representation octals can't have a '-' in front. */ if (sign == -1 && !twos_complement_representation) ++nbits; diff --git a/gdb/stubs/m32r-stub.c b/gdb/stubs/m32r-stub.c index 1f55f85e681..8ac71f14c82 100644 --- a/gdb/stubs/m32r-stub.c +++ b/gdb/stubs/m32r-stub.c @@ -409,7 +409,7 @@ handle_exception (int exceptionVector) hex2mem (ptr, (unsigned char *) ®isters[regno], 4, 0); /* * Since we just changed a single CPU register, let's - * make sure to keep the several stack pointers consistant. + * make sure to keep the several stack pointers consistent. */ stackmode = registers[PSW] & 0x80; if (regno == R15) /* stack pointer changed */ diff --git a/gdb/testsuite/gdb.base/savedregs.exp b/gdb/testsuite/gdb.base/savedregs.exp index ce3ab94c479..f20fd7c3731 100644 --- a/gdb/testsuite/gdb.base/savedregs.exp +++ b/gdb/testsuite/gdb.base/savedregs.exp @@ -57,7 +57,7 @@ proc process_saved_regs { current inner outer } { # and for dummy frames won't have saved registers. If there's a # problem, fail but capture the output anyway, hopefully later # "info frame" requests for that same frame will at least fail in - # a consistent manner (stops propogated fails). + # a consistent manner (stops propagated fails). foreach func $inner { set saved_regs($func) "error" diff --git a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.c b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.c index 290a58407bf..2c0be651b1c 100644 --- a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.c +++ b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.c @@ -28,7 +28,7 @@ main () pmxvi4ger8*, pmxvi8ger4* pmxvi16ger2* instructions were officially changed to pmdmxbf16ger*, pmdmxvf32ger*, pmdmxvf64ger*, pmdmxvi4ger8*, pmdmxvi8ger4*, pmdmxvi16ger* respectively. The old mnemonics are used in - this test for backward compatibity. */ + this test for backward compatibility. */ ra = 0xABCDEF012; rb = 0; rs = 0x012345678; diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index e32ce394339..b3fcbc65a4a 100644 --- a/gdb/yy-remap.h +++ b/gdb/yy-remap.h @@ -19,7 +19,7 @@ #define YY_REMAP_H /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, - etc), as well as gratuitiously global symbol names, so we can have + etc), as well as gratuitously global symbol names, so we can have multiple yacc generated parsers in gdb. Note that these are only the variables produced by yacc. If other parser generators (bison, byacc, etc) produce additional global names that conflict at link