[gdb] Fix typos in comments

Fix typos in comments.  NFC.

Tested on x86_64-linux.

gdb/ChangeLog:

2019-10-17  Tom de Vries  <tdevries@suse.de>

	* arm-nbsd-nat.c: Fix typos in comments.
	* arm-tdep.c: Same.
	* darwin-nat-info.c: Same.
	* dwarf2read.c: Same.
	* elfread.c: Same.
	* event-top.c: Same.
	* findvar.c: Same.
	* gdbtypes.c: Same.
	* hppa-tdep.c: Same.
	* i386-tdep.c: Same.
	* jit.c: Same.
	* main.c: Same.
	* mdebugread.c: Same.
	* moxie-tdep.c: Same.
	* nto-procfs.c: Same.
	* osabi.c: Same.
	* ppc-linux-tdep.c: Same.
	* remote.c: Same.
	* riscv-tdep.c: Same.
	* s390-tdep.c: Same.
	* sh-tdep.c: Same.
	* sparc-linux-tdep.c: Same.
	* sparc-nat.c: Same.
	* stack.c: Same.
	* target-descriptions.c: Same.
	* top.c: Same.
	* varobj.c: Same.

Change-Id: I6047967abd2d51c9000dea15184d19f4e952c3ff
This commit is contained in:
Tom de Vries 2019-10-17 18:06:36 +02:00
parent 062f1fc13a
commit 405feb71d4
28 changed files with 81 additions and 51 deletions

View File

@ -1,3 +1,33 @@
2019-10-17 Tom de Vries <tdevries@suse.de>
* arm-nbsd-nat.c: Fix typos in comments.
* arm-tdep.c: Same.
* darwin-nat-info.c: Same.
* dwarf2read.c: Same.
* elfread.c: Same.
* event-top.c: Same.
* findvar.c: Same.
* gdbtypes.c: Same.
* hppa-tdep.c: Same.
* i386-tdep.c: Same.
* jit.c: Same.
* main.c: Same.
* mdebugread.c: Same.
* moxie-tdep.c: Same.
* nto-procfs.c: Same.
* osabi.c: Same.
* ppc-linux-tdep.c: Same.
* remote.c: Same.
* riscv-tdep.c: Same.
* s390-tdep.c: Same.
* sh-tdep.c: Same.
* sparc-linux-tdep.c: Same.
* sparc-nat.c: Same.
* stack.c: Same.
* target-descriptions.c: Same.
* top.c: Same.
* varobj.c: Same.
2019-10-16 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile) <original_name>: Now const.

View File

@ -437,7 +437,7 @@ fetch_elfcore_registers (struct regcache *regcache,
static struct core_fns arm_netbsd_elfcore_fns =
{
bfd_target_elf_flavour, /* core_flovour. */
bfd_target_elf_flavour, /* core_flavour. */
default_check_format, /* check_format. */
default_core_sniffer, /* core_sniffer. */
fetch_elfcore_registers, /* core_read_registers. */

View File

@ -6809,7 +6809,7 @@ thumb2_decode_svc_copro (struct gdbarch *gdbarch, uint16_t insn1,
if (bit_4 == 0) /* STC/STC2. */
return thumb_copy_unmodified_32bit (gdbarch, insn1, insn2,
"stc/stc2", dsc);
else /* LDC/LDC2 {literal, immeidate}. */
else /* LDC/LDC2 {literal, immediate}. */
return thumb2_copy_copro_load_store (gdbarch, insn1, insn2,
regs, dsc);
}
@ -6954,7 +6954,7 @@ thumb_copy_16bit_ldr_literal (struct gdbarch *gdbarch, uint16_t insn1,
return 0;
}
/* Copy Thumb cbnz/cbz insruction. */
/* Copy Thumb cbnz/cbz instruction. */
static int
thumb_copy_cbnz_cbz (struct gdbarch *gdbarch, uint16_t insn1,
@ -7329,7 +7329,7 @@ thumb_process_displaced_32bit_insn (struct gdbarch *gdbarch, uint16_t insn1,
case 0:
if (bit (insn1, 6))
{
/* Load/store {dual, execlusive}, table branch. */
/* Load/store {dual, exclusive}, table branch. */
if (bits (insn1, 7, 8) == 1 && bits (insn1, 4, 5) == 1
&& bits (insn2, 5, 7) == 0)
err = thumb2_copy_table_branch (gdbarch, insn1, insn2, regs,
@ -7390,7 +7390,7 @@ thumb_process_displaced_32bit_insn (struct gdbarch *gdbarch, uint16_t insn1,
err = thumb_copy_unmodified_32bit (gdbarch, insn1, insn2,
"dp/pb", dsc);
}
else /* Data processing (modified immeidate) */
else /* Data processing (modified immediate) */
err = thumb_copy_unmodified_32bit (gdbarch, insn1, insn2,
"dp/mi", dsc);
}

View File

@ -810,7 +810,7 @@ info_mach_exceptions_command (const char *args, int from_tty)
}
else if (strcmp (args, "host") == 0)
{
/* FIXME: This need a privilegied host port! */
/* FIXME: This needs a privileged host port! */
kret = host_get_exception_ports
(darwin_host_self, EXC_MASK_ALL, info.masks,
&info.count, info.ports, info.behaviors, info.flavors);

View File

@ -1486,7 +1486,7 @@ struct cu_partial_die_info
cu_partial_die_info (struct dwarf2_cu *cu, struct partial_die_info *pdi)
: cu (cu),
pdi (pdi)
{ /* Nothhing. */ }
{ /* Nothing. */ }
private:
cu_partial_die_info () = delete;
@ -14942,7 +14942,7 @@ producer_is_codewarrior (struct dwarf2_cu *cu)
return cu->producer_is_codewarrior;
}
/* Return the default accessibility type if it is not overriden by
/* Return the default accessibility type if it is not overridden by
DW_AT_accessibility. */
static enum dwarf_access_attribute

View File

@ -1433,7 +1433,7 @@ const struct sym_fns elf_sym_fns_gdb_index =
elf_symfile_read, /* read a symbol file into symtab */
NULL, /* sym_read_psymbols */
elf_symfile_finish, /* finished with file, cleanup */
default_symfile_offsets, /* Translate ext. to int. relocatin */
default_symfile_offsets, /* Translate ext. to int. relocation */
elf_symfile_segments, /* Get segment information from a file. */
NULL,
default_symfile_relocate, /* Relocate a debug section. */
@ -1450,7 +1450,7 @@ const struct sym_fns elf_sym_fns_debug_names =
elf_symfile_read, /* read a symbol file into symtab */
NULL, /* sym_read_psymbols */
elf_symfile_finish, /* finished with file, cleanup */
default_symfile_offsets, /* Translate ext. to int. relocatin */
default_symfile_offsets, /* Translate ext. to int. relocation */
elf_symfile_segments, /* Get segment information from a file. */
NULL,
default_symfile_relocate, /* Relocate a debug section. */

View File

@ -421,7 +421,7 @@ display_gdb_prompt (const char *new_prompt)
}
/* Return the top level prompt, as specified by "set prompt", possibly
overriden by the python gdb.prompt_hook hook, and then composed
overridden by the python gdb.prompt_hook hook, and then composed
with the prompt prefix and suffix (annotations). */
static std::string
@ -1152,7 +1152,7 @@ handle_sigfpe (int sig)
signal (sig, handle_sigfpe);
}
/* Event loop will call this functin to process a SIGFPE. */
/* Event loop will call this function to process a SIGFPE. */
static void
async_float_handler (gdb_client_data arg)
{

View File

@ -218,7 +218,7 @@ store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
bytes. If SOURCE_SIZE is greater than DEST_SIZE, then truncate the most
significant bytes. If SOURCE_SIZE is less than DEST_SIZE then either sign
or zero extended according to IS_SIGNED. Values are stored in memory with
endianess BYTE_ORDER. */
endianness BYTE_ORDER. */
void
copy_integer_to_size (gdb_byte *dest, int dest_size, const gdb_byte *source,

View File

@ -2733,7 +2733,7 @@ check_stub_method_group (struct type *type, int method_id)
}
}
/* Ensure it is in .rodata (if available) by workarounding GCC PR 44690. */
/* Ensure it is in .rodata (if available) by working around GCC PR 44690. */
const struct cplus_struct_type cplus_struct_default = { };
void

View File

@ -88,7 +88,7 @@ static const struct objfile_key<hppa_objfile_private,
gdb::noop_deleter<hppa_objfile_private>>
hppa_objfile_priv_data;
/* Get at various relevent fields of an instruction word. */
/* Get at various relevant fields of an instruction word. */
#define MASK_5 0x1f
#define MASK_11 0x7ff
#define MASK_14 0x3fff

View File

@ -2956,7 +2956,7 @@ i386_return_value (struct gdbarch *gdbarch, struct value *function,
|| code == TYPE_CODE_UNION
|| code == TYPE_CODE_ARRAY)
&& !i386_reg_struct_return_p (gdbarch, type))
/* Complex double and long double uses the struct return covention. */
/* Complex double and long double uses the struct return convention. */
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 16)
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 24)
/* 128-bit decimal float uses the struct return convention. */

View File

@ -76,7 +76,7 @@ struct target_buffer
ULONGEST size;
};
/* Openning the file is a no-op. */
/* Opening the file is a no-op. */
static void *
mem_bfd_iovec_open (struct bfd *abfd, void *open_closure)

View File

@ -911,7 +911,7 @@ captured_main_1 (struct captured_main_args *context)
}
/* Lookup gdbinit files. Note that the gdbinit file name may be
overriden during file initialization, so get_init_files should be
overridden during file initialization, so get_init_files should be
called after gdb_init. */
std::string system_gdbinit;
std::string home_gdbinit;

View File

@ -187,7 +187,7 @@ static const struct ecoff_debug_swap *debug_swap;
static struct ecoff_debug_info *debug_info;
/* Pointer to current file decriptor record, and its index. */
/* Pointer to current file descriptor record, and its index. */
static FDR *cur_fdr;
static int cur_fd;
@ -3729,7 +3729,7 @@ parse_partial_symbols (minimal_symbol_reader &reader,
if (rh == f_idx)
continue;
/* Do not add to dependeny list if psymtab was empty. */
/* Do not add to dependency list if psymtab was empty. */
if (fdr_to_pst[rh].pst == NULL)
continue;
pst->dependencies[pst->number_of_dependencies++]

View File

@ -271,7 +271,7 @@ struct moxie_unwind_cache
};
/* Read an unsigned integer from the inferior, and adjust
endianess. */
endianness. */
static ULONGEST
moxie_process_readu (CORE_ADDR addr, gdb_byte *buf,
int length, enum bfd_endian byte_order)

View File

@ -605,7 +605,7 @@ procfs_meminfo (const char *args, int from_tty)
if (strcmp (map.info.path, printme.name))
continue;
/* Lower debug_vaddr is always text, if nessessary, swap. */
/* Lower debug_vaddr is always text, if necessary, swap. */
if ((int) map.info.vaddr < (int) printme.text.debug_vaddr)
{
memcpy (&(printme.data), &(printme.text),

View File

@ -415,7 +415,7 @@ check_note (bfd *abfd, asection *sect, char *note, unsigned int *sectsize,
/* If this assertion triggers, increase MAX_NOTESZ. */
gdb_assert (notesz <= MAX_NOTESZ);
/* Check whether SECT is big enough to comtain the complete note. */
/* Check whether SECT is big enough to contain the complete note. */
if (notesz > bfd_section_size (sect))
return 0;

View File

@ -657,7 +657,7 @@ const struct regset ppc32_linux_tm_sprregset = {
general-purpose regsets for 32-bit, 64-bit big-endian, and 64-bit
little endian targets. The ptrace and core file buffers for 64-bit
targets use 8-byte fields for the 4-byte registers, and the
position of the register in the fields depends on the endianess.
position of the register in the fields depends on the endianness.
The 32-bit regmap is the same for both endian types because the
fields are all 4-byte long.
@ -761,7 +761,7 @@ const struct regset ppc32_linux_cfprregset = {
/* Regmaps for the Hardware Transactional Memory checkpointed vector
regsets, for big and little endian targets. The position of the
4-byte VSCR in its 16-byte field depends on the endianess. */
4-byte VSCR in its 16-byte field depends on the endianness. */
static const struct regcache_map_entry ppc32_le_regmap_cvmx[] =
{

View File

@ -141,7 +141,7 @@ struct vCont_action_support
bool S = false;
};
/* About this many threadisds fit in a packet. */
/* About this many threadids fit in a packet. */
#define MAXTHREADLISTRESULTS 32
@ -3250,7 +3250,7 @@ remote_target::remote_unpack_thread_info_response (char *pkt,
}
copy_threadref (&info->threadid, &ref);
/* Loop on tagged fields , try to bail if somthing goes wrong. */
/* Loop on tagged fields , try to bail if something goes wrong. */
/* Packets are terminated with nulls. */
while ((pkt < limit) && mask && *pkt)
@ -3389,7 +3389,7 @@ remote_target::remote_get_threadlist (int startflag, threadref *nextthread,
struct remote_state *rs = get_remote_state ();
int result = 1;
/* Trancate result limit to be smaller than the packet size. */
/* Truncate result limit to be smaller than the packet size. */
if ((((result_limit + 1) * BUF_THREAD_ID_SIZE) + 10)
>= get_remote_packet_size ())
result_limit = (get_remote_packet_size () / BUF_THREAD_ID_SIZE) - 2;
@ -3411,8 +3411,8 @@ remote_target::remote_get_threadlist (int startflag, threadref *nextthread,
if (!threadmatch (&rs->echo_nextthread, nextthread))
{
/* FIXME: This is a good reason to drop the packet. */
/* Possably, there is a duplicate response. */
/* Possabilities :
/* Possibly, there is a duplicate response. */
/* Possibilities :
retransmit immediatly - race conditions
retransmit after timeout - yes
exit
@ -11283,7 +11283,7 @@ output_threadid (char *title, threadref *ref)
{
char hexid[20];
pack_threadid (&hexid[0], ref); /* Convert threead id into hex. */
pack_threadid (&hexid[0], ref); /* Convert thread id into hex. */
hexid[16] = 0;
printf_filtered ("%s %s\n", title, (&hexid[0]));
}

View File

@ -1010,7 +1010,7 @@ public:
LUI,
SD,
SW,
/* These are needed for software breakopint support. */
/* These are needed for software breakpoint support. */
JAL,
JALR,
BEQ,

View File

@ -2116,7 +2116,7 @@ s390_return_value (struct gdbarch *gdbarch, struct value *function,
/* Frame unwinding. */
/* Implmement the stack_frame_destroyed_p gdbarch method. */
/* Implement the stack_frame_destroyed_p gdbarch method. */
static int
s390_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR pc)
@ -5311,7 +5311,7 @@ ex:
case 0xe383: /* MSGC - multiply single 64x64mem -> 64 */
case 0xe398: /* ALC - add logical with carry */
case 0xe399: /* SLB - subtract logical with borrow */
case 0xe727: /* LCBB - load count to block bounduary */
case 0xe727: /* LCBB - load count to block boundary */
case 0xeb81: /* ICMY - insert characters under mask */
case 0xebdc: /* SRAK - shift left single */
case 0xebdd: /* SLAK - shift left single */
@ -5537,7 +5537,7 @@ ex:
case 0xe704: /* VLLEZ - vector load logical element and zero */
case 0xe705: /* VLREP - vector load and replicate */
case 0xe706: /* VL - vector load */
case 0xe707: /* VLBB - vector load to block bounduary */
case 0xe707: /* VLBB - vector load to block boundary */
case 0xe712: /* VGEG - vector gather element */
case 0xe713: /* VGEF - vector gather element */
case 0xe722: /* VLVG - vector load vr element from gr */
@ -6238,7 +6238,7 @@ ex:
return -1;
break;
/* 0xed42-0xed47 undefind */
/* 0xed42-0xed47 undefined */
case 0xed48: /* SLXT - shift significand left */
case 0xed49: /* SRXT - shift significand right */
@ -6253,10 +6253,10 @@ ex:
return -1;
break;
/* 0xed4a-0xed4f undefind */
/* 0xed52-0xed53 undefind */
/* 0xed56-0xed57 undefind */
/* 0xed5a-0xed63 undefind */
/* 0xed4a-0xed4f undefined */
/* 0xed52-0xed53 undefined */
/* 0xed56-0xed57 undefined */
/* 0xed5a-0xed63 undefined */
/* 0xed68-0xeda7 undefined */
case 0xeda8: /* CZDT - convert to zoned */

View File

@ -912,7 +912,7 @@ sh_frame_align (struct gdbarch *ignore, CORE_ADDR sp)
not displace any of the other arguments passed in via registers R4
to R7. */
/* Helper function to justify value in register according to endianess. */
/* Helper function to justify value in register according to endianness. */
static const gdb_byte *
sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, int len)
{
@ -942,7 +942,7 @@ sh_stack_allocsize (int nargs, struct value **args)
}
/* Helper functions for getting the float arguments right. Registers usage
depends on the ABI and the endianess. The comments should enlighten how
depends on the ABI and the endianness. The comments should enlighten how
it's intended to work. */
/* This array stores which of the float arg registers are already in use. */
@ -1045,7 +1045,7 @@ sh_treat_as_flt_p (struct type *type)
/* Otherwise non-struct types are not treated as float. */
if (TYPE_CODE (type) != TYPE_CODE_STRUCT)
return 0;
/* Otherwise structs with more than one memeber are not treated as float. */
/* Otherwise structs with more than one member are not treated as float. */
if (TYPE_NFIELDS (type) != 1)
return 0;
/* Otherwise if the type of that member is float, the whole type is
@ -1669,7 +1669,7 @@ sh_pseudo_register_read (struct gdbarch *gdbarch, readable_regcache *regcache,
2, base_regnum, temp_buffer);
if (status == REG_VALID)
{
/* We must pay attention to the endiannes. */
/* We must pay attention to the endianness. */
sh_register_convert_to_virtual (gdbarch, reg_nr,
register_type (gdbarch, reg_nr),
temp_buffer, buffer);
@ -1712,7 +1712,7 @@ sh_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
gdb_byte temp_buffer[4 * 2];
base_regnum = dr_reg_base_num (gdbarch, reg_nr);
/* We must pay attention to the endiannes. */
/* We must pay attention to the endianness. */
sh_register_convert_to_raw (gdbarch, register_type (gdbarch, reg_nr),
reg_nr, buffer, temp_buffer);

View File

@ -68,7 +68,7 @@ static const struct tramp_frame sparc32_linux_sigframe =
SIGTRAMP_FRAME,
4,
{
{ 0x821020d8, ULONGEST_MAX }, /* mov __NR_sugreturn, %g1 */
{ 0x821020d8, ULONGEST_MAX }, /* mov __NR_sigreturn, %g1 */
{ 0x91d02010, ULONGEST_MAX }, /* ta 0x10 */
{ TRAMP_SENTINEL_INSN, ULONGEST_MAX }
},

View File

@ -308,7 +308,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
void
_initialize_sparc_nat (void)
{
/* Deafult to using SunOS 4 register sets. */
/* Default to using SunOS 4 register sets. */
if (sparc_gregmap == NULL)
sparc_gregmap = &sparc32_sunos4_gregmap;
if (sparc_fpregmap == NULL)

View File

@ -959,7 +959,7 @@ get_user_print_what_frame_info (gdb::optional<enum print_what> *what)
/* Print information about frame FRAME. The output is format according
to PRINT_LEVEL and PRINT_WHAT and PRINT_ARGS. For the meaning of
PRINT_WHAT, see enum print_what comments in frame.h.
Note that PRINT_WHAT is overriden if FP_OPTS.print_frame_info
Note that PRINT_WHAT is overridden if FP_OPTS.print_frame_info
!= print_frame_info_auto.
Used in "where" output, and to emit breakpoint or step

View File

@ -1747,7 +1747,7 @@ static std::vector<xml_test_tdesc> xml_tdesc;
#if GDB_SELF_TEST
/* See target-descritpions.h. */
/* See target-descriptions.h. */
void
record_xml_tdesc (const char *xml_file, const struct target_desc *tdesc)

View File

@ -86,7 +86,7 @@ extern void initialize_all_files (void);
#define PREFIX(X) the_prompts.prompt_stack[the_prompts.top + X].prefix
#define SUFFIX(X) the_prompts.prompt_stack[the_prompts.top + X].suffix
/* Default command line prompt. This is overriden in some configs. */
/* Default command line prompt. This is overridden in some configs. */
#ifndef DEFAULT_PROMPT
#define DEFAULT_PROMPT "(gdb) "

View File

@ -1831,7 +1831,7 @@ install_variable (struct varobj *var)
return true; /* OK */
}
/* Unistall the object VAR. */
/* Uninstall the object VAR. */
static void
uninstall_variable (struct varobj *var)
{