2011-02-25 Michael Snyder <msnyder@vmware.com>

* arm-tdep.c: Fix typos in comments.
	* bsd-uthread.c: Ditto.
	* completer.c: Ditto.
	* corelow.c: Ditto.
	* cp-namespace.c: Ditto.
	* cp-support.c: Ditto.
	* cris-tdep.c: Ditto.
	* dbxread.c: Ditto.
	* dwarf2read.c: Ditto.
	* frame.h: Ditto.
	* gdbtypes.h: Ditto.
	* inferior.h: Ditto.
	* mdebugread.c: Ditto.
	* mips-tdep.c: Ditto.
	* ppc-linux-nat.c: Ditto.
	* ppc-linux-tdep.c: Ditto.
	* printcmd.c: Ditto.
	* sol-thread.c: Ditto.
	* solib-frv.c: Ditto.
	* solist.h: Ditto.
	* sparc64-tdep.c: Ditto.
	* spu-tdep.c: Ditto.
	* stabsread.c: Ditto.
	* symfile.c: Ditto.
	* valops.c: Ditto.
	* varobj.c: Ditto.
	* vax-nat.c: Ditto.
	* python/py-block.c: Ditto.
	* python/py-symbol.c: Ditto.
	* python/py-symtab.c: Ditto.
	* python/py-value.c: Ditto.
	* tui/tui-win.c: Ditto.
This commit is contained in:
Michael Snyder 2011-02-26 02:07:10 +00:00
parent 80549d04a2
commit b021a22166
33 changed files with 101 additions and 67 deletions

View File

@ -1,3 +1,38 @@
2011-02-25 Michael Snyder <msnyder@vmware.com>
* arm-tdep.c: Fix typos in comments.
* bsd-uthread.c: Ditto.
* completer.c: Ditto.
* corelow.c: Ditto.
* cp-namespace.c: Ditto.
* cp-support.c: Ditto.
* cris-tdep.c: Ditto.
* dbxread.c: Ditto.
* dwarf2read.c: Ditto.
* frame.h: Ditto.
* gdbtypes.h: Ditto.
* inferior.h: Ditto.
* mdebugread.c: Ditto.
* mips-tdep.c: Ditto.
* ppc-linux-nat.c: Ditto.
* ppc-linux-tdep.c: Ditto.
* printcmd.c: Ditto.
* sol-thread.c: Ditto.
* solib-frv.c: Ditto.
* solist.h: Ditto.
* sparc64-tdep.c: Ditto.
* spu-tdep.c: Ditto.
* stabsread.c: Ditto.
* symfile.c: Ditto.
* valops.c: Ditto.
* varobj.c: Ditto.
* vax-nat.c: Ditto.
* python/py-block.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-symtab.c: Ditto.
* python/py-value.c: Ditto.
* tui/tui-win.c: Ditto.
2011-02-25 Michael Snyder <msnyder@vmware.com>
* inferior.c (print_inferior): Accept a string instead of an int

View File

@ -7155,8 +7155,9 @@ arm_extract_return_value (struct type *type, struct regcache *regs,
|| TYPE_CODE (type) == TYPE_CODE_REF
|| TYPE_CODE (type) == TYPE_CODE_ENUM)
{
/* If the the type is a plain integer, then the access is
straight-forward. Otherwise we have to play around a bit more. */
/* If the type is a plain integer, then the access is
straight-forward. Otherwise we have to play around a bit
more. */
int len = TYPE_LENGTH (type);
int regno = ARM_A1_REGNUM;
ULONGEST tmp;

View File

@ -105,7 +105,7 @@ bsd_uthread_check_magic (CORE_ADDR addr)
#define BSD_UTHREAD_PS_RUNNING 0
#define BSD_UTHREAD_PS_DEAD 18
/* Address of the pointer to the the thread structure for the running
/* Address of the pointer to the thread structure for the running
thread. */
static CORE_ADDR bsd_uthread_thread_run_addr;

View File

@ -914,10 +914,10 @@ line_completion_function (const char *text, int matches,
}
/* Skip over the possibly quoted word STR (as defined by the quote
characters QUOTECHARS and the the word break characters
BREAKCHARS). Returns pointer to the location after the "word". If
either QUOTECHARS or BREAKCHARS is NULL, use the same values used
by the completer. */
characters QUOTECHARS and the word break characters BREAKCHARS).
Returns pointer to the location after the "word". If either
QUOTECHARS or BREAKCHARS is NULL, use the same values used by the
completer. */
char *
skip_quoted_chars (char *str, char *quotechars, char *breakchars)

View File

@ -107,7 +107,7 @@ static struct target_ops core_ops;
/* Link a new core_fns into the global core_file_fns list. Called on
gdb startup by the _initialize routine in each core file register
reader, to register information about each format the the reader is
reader, to register information about each format the reader is
prepared to handle. */
void

View File

@ -719,7 +719,7 @@ cp_lookup_nested_type (struct type *parent_type,
/* FIXME: carlton/2004-01-16: The problem that this is trying to
address is that, unfortunately, sometimes NAME is wrong: it may not
include the name of namespaces enclosing the type in question.
lookup_transparent_type gets called when the the type in question
lookup_transparent_type gets called when the type in question
is a declaration, and we're trying to find its definition; but, for
declarations, our type name deduction mechanism doesn't work.
There's nothing we can do to fix this in general, I think, in the
@ -752,10 +752,9 @@ cp_lookup_transparent_type (const char *name)
return cp_lookup_transparent_type_loop (name, scope, 0);
}
/* Lookup the the type definition associated to NAME in
namespaces/classes containing SCOPE whose name is strictly longer
than LENGTH. LENGTH must be the index of the start of a component
of SCOPE. */
/* Lookup the type definition associated to NAME in namespaces/classes
containing SCOPE whose name is strictly longer than LENGTH. LENGTH
must be the index of the start of a component of SCOPE. */
static struct type *
cp_lookup_transparent_type_loop (const char *name,

View File

@ -837,7 +837,7 @@ make_symbol_overload_list_adl_namespace (struct type *type,
}
}
/* Adds the the overload list overload candidates for FUNC_NAME found
/* Adds the overload list overload candidates for FUNC_NAME found
through argument dependent lookup. */
struct symbol **

View File

@ -2567,7 +2567,7 @@ asrq_op (unsigned short inst, inst_env_type *inst_env)
return;
}
/* The shift size is given as a 5 bit quick value, i.e. we don't
want the the sign bit of the quick value. */
want the sign bit of the quick value. */
shift_steps = cris_get_asr_shift_steps (inst);
value = inst_env->reg[REG_PC];
if (value & SIGNED_DWORD_MASK)
@ -2891,7 +2891,7 @@ none_reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env)
{
check_assign (inst, inst_env);
/* Get the new value for the the PC. */
/* Get the new value for the PC. */
newpc =
read_memory_unsigned_integer ((CORE_ADDR) inst_env->prefix_value,
4, inst_env->byte_order);

View File

@ -1312,7 +1312,7 @@ read_dbx_symtab (struct objfile *objfile)
*) The assignment to namestring.
*) The call to strchr.
*) The addition of a partial symbol the the two partial
*) 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. */

View File

@ -10594,7 +10594,7 @@ dwarf_decode_lines (struct line_header *lh, const char *comp_dir, bfd *abfd,
address increment value corresponding to special opcode
255. I.e., this value is scaled by the minimum
instruction length since special opcode 255 would have
scaled the the increment. */
scaled the increment. */
case DW_LNS_const_add_pc:
{
CORE_ADDR adjust = (255 - lh->opcode_base) / lh->line_range;

View File

@ -218,7 +218,7 @@ enum frame_type
/* For every stopped thread, GDB tracks two frames: current and
selected. Current frame is the inner most frame of the selected
thread. Selected frame is the one being examined by the the GDB
thread. Selected frame is the one being examined by the GDB
CLI (selected using `up', `down', ...). The frames are created
on-demand (via get_prev_frame()) and then held in a frame cache. */
/* FIXME: cagney/2002-11-28: Er, there is a lie here. If you do the

View File

@ -1112,7 +1112,7 @@ struct builtin_type
{
/* Integral types. */
/* Implicit size/sign (based on the the architecture's ABI). */
/* Implicit size/sign (based on the architecture's ABI). */
struct type *builtin_void;
struct type *builtin_char;
struct type *builtin_short;

View File

@ -142,7 +142,7 @@ extern int step_stop_if_no_debug;
/* If set, the inferior should be controlled in non-stop mode. In
this mode, each thread is controlled independently. Execution
commands apply only to the the selected thread by default, and stop
commands apply only to the selected thread by default, and stop
events stop only the thread that had the event -- the other threads
are kept running freely. */
extern int non_stop;

View File

@ -3860,7 +3860,7 @@ parse_partial_symbols (struct objfile *objfile)
}
/* If the current psymbol has an enumerated type, we need to add
all the the enum constants to the partial symbol table. */
all the enum constants to the partial symbol table. */
static void
handle_psymbol_enumerators (struct objfile *objfile, FDR *fh, int stype,

View File

@ -3138,8 +3138,8 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
len -= partial_len;
val += partial_len;
/* Compute the the offset into the stack at which we
will copy the next parameter.
/* Compute the offset into the stack at which we will
copy the next parameter.
In the new EABI (and the NABI32), the stack_offset
only needs to be adjusted when it has been used. */
@ -3530,8 +3530,8 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
len -= partial_len;
val += partial_len;
/* Compute the the offset into the stack at which we
will copy the next parameter.
/* Compute the offset into the stack at which we will
copy the next parameter.
In N32 (N64?), the stack_offset only needs to be
adjusted when it has been used. */
@ -4010,8 +4010,8 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
len -= partial_len;
val += partial_len;
/* Compute the the offset into the stack at which we
will copy the next parameter.
/* Compute the offset into the stack at which we will
copy the next parameter.
In older ABIs, the caller reserved space for
registers that contained arguments. This was loosely
@ -4418,8 +4418,8 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
len -= partial_len;
val += partial_len;
/* Compute the the offset into the stack at which we
will copy the next parameter.
/* Compute the offset into the stack at which we will
copy the next parameter.
In older ABIs, the caller reserved space for
registers that contained arguments. This was loosely
@ -5312,7 +5312,7 @@ mips_breakpoint_from_pc (struct gdbarch *gdbarch,
and the target PC is in $2.
* If the PC at the start of __mips16_call_stub_{s,d}f_{0..10}, i.e.
before the jal instruction, this is effectively a call stub
and the the target PC is in $2. Otherwise this is effectively
and the target PC is in $2. Otherwise this is effectively
a return stub and the target PC is in $18.
See the source code for the stubs in gcc/config/mips/mips16.S for
@ -5344,7 +5344,7 @@ mips_skip_mips16_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
/* If the PC at the start of __mips16_call_stub_{s,d}f_{0..10}, i.e.
before the jal instruction, this is effectively a call stub
and the the target PC is in $2. Otherwise this is effectively
and the target PC is in $2. Otherwise this is effectively
a return stub and the target PC is in $18. */
else if (name[19] == 's' || name[19] == 'd')
{

View File

@ -264,7 +264,7 @@ typedef char gdb_vrregset_t[SIZEOF_VRREGS];
typedef char gdb_vsxregset_t[SIZEOF_VSXREGS];
/* On PPC processors that support the the Signal Processing Extension
/* On PPC processors that support the Signal Processing Extension
(SPE) APU, the general-purpose registers are 64 bits long.
However, the ordinary Linux kernel PTRACE_PEEKUSER / PTRACE_POKEUSER
ptrace calls only access the lower half of each register, to allow
@ -275,7 +275,7 @@ typedef char gdb_vsxregset_t[SIZEOF_VSXREGS];
GDB itself continues to claim the general-purpose registers are 32
bits long. It has unnamed raw registers that hold the upper halves
of the gprs, and the the full 64-bit SIMD views of the registers,
of the gprs, and the full 64-bit SIMD views of the registers,
'ev0' -- 'ev31', are pseudo-registers that splice the top and
bottom halves together.

View File

@ -1509,7 +1509,7 @@ ppc_linux_init_abi (struct gdbarch_info info,
/* Until November 2001, gcc did not comply with the 32 bit SysV
R4 ABI requirement that structures less than or equal to 8
bytes should be returned in registers. Instead GCC was using
the the AIX/PowerOpen ABI - everything returned in memory
the AIX/PowerOpen ABI - everything returned in memory
(well ignoring vectors that is). When this was corrected, it
wasn't fixed for GNU/Linux native platform. Use the
PowerOpen struct convention. */

View File

@ -333,8 +333,8 @@ print_formatted (struct value *val, int size,
|| TYPE_CODE (type) == TYPE_CODE_NAMESPACE)
value_print (val, stream, options);
else
/* User specified format, so don't look to the the type to
tell us what to do. */
/* User specified format, so don't look to the type to tell us
what to do. */
val_print_scalar_formatted (type,
value_contents_for_printing (val),
value_embedded_offset (val),

View File

@ -173,7 +173,7 @@ blpy_dealloc (PyObject *obj)
/* Given a block, and a block_object that has previously been
allocated and initialized, populate the block_object with the
struct block data. Also, register the block_object life-cycle
with the life-cycle of the the object file associated with this
with the life-cycle of the object file associated with this
block, if needed. */
static void
set_block (block_object *obj, struct block *block,

View File

@ -170,7 +170,7 @@ sympy_is_variable (PyObject *self, void *closure)
/* Given a symbol, and a symbol_object that has previously been
allocated and initialized, populate the symbol_object with the
struct symbol data. Also, register the symbol_object life-cycle
with the life-cycle of the the object file associated with this
with the life-cycle of the object file associated with this
symbol, if needed. */
static void
set_symbol (symbol_object *obj, struct symbol *symbol)

View File

@ -231,12 +231,12 @@ salpy_dealloc (PyObject *self)
self_sal->ob_type->tp_free (self);
}
/* Given a sal, and a sal_object that has previously been
allocated and initialized, populate the sal_object with the
struct sal data. Also, register the sal_object life-cycle with the
life-cycle of the the object file associated with this sal, if
needed. If a failure occurs during the sal population, this
function will return NULL. */
/* Given a sal, and a sal_object that has previously been allocated
and initialized, populate the sal_object with the struct sal data.
Also, register the sal_object life-cycle with the life-cycle of the
object file associated with this sal, if needed. If a failure
occurs during the sal population, this function will return
NULL. */
static int
set_sal (sal_object *sal_obj, struct symtab_and_line sal)
{
@ -282,7 +282,7 @@ set_sal (sal_object *sal_obj, struct symtab_and_line sal)
/* Given a symtab, and a symtab_object that has previously been
allocated and initialized, populate the symtab_object with the
struct symtab data. Also, register the symtab_object life-cycle
with the life-cycle of the the object file associated with this
with the life-cycle of the object file associated with this
symtab, if needed. */
static void
set_symtab (symtab_object *obj, struct symtab *symtab)

View File

@ -34,7 +34,7 @@
#include "python-internal.h"
/* Even though Python scalar types directly map to host types, we use
target types here to remain consistent with the the values system in
target types here to remain consistent with the values system in
GDB (which uses target arithmetic). */
/* Python's integer type corresponds to C's long type. */

View File

@ -204,7 +204,7 @@ td_err_string (td_err_e errcode)
return buf;
}
/* Return the the libthread_db state string assicoated with STATECODE.
/* Return the libthread_db state string assicoated with STATECODE.
If STATECODE is unknown, return an appropriate message. */
static char *

View File

@ -461,7 +461,7 @@ frv_current_sos (void)
/* Locate the address of the first link map struct. */
lm_addr = lm_base ();
/* We have at least one link map entry. Fetch the the lot of them,
/* We have at least one link map entry. Fetch the lot of them,
building the solist chain. */
while (lm_addr)
{

View File

@ -85,8 +85,8 @@ struct target_so_ops
void (*relocate_section_addresses) (struct so_list *so,
struct target_section *);
/* Free the the link map info and any other private data
structures associated with a so_list entry. */
/* Free the link map info and any other private data structures
associated with a so_list entry. */
void (*free_so) (struct so_list *so);
/* Reset or free private data structures not associated with

View File

@ -40,7 +40,7 @@
#include "sparc64-tdep.h"
/* This file implements the The SPARC 64-bit ABI as defined by the
/* This file implements the SPARC 64-bit ABI as defined by the
section "Low-Level System Information" of the SPARC Compliance
Definition (SCD) 2.4.1, which is the 64-bit System V psABI for
SPARC. */

View File

@ -355,7 +355,7 @@ spu_gdbarch_id (struct gdbarch *gdbarch)
int id = tdep->id;
/* The objfile architecture of a standalone SPU executable does not
provide an SPU ID. Retrieve it from the the objfile's relocated
provide an SPU ID. Retrieve it from the objfile's relocated
address range in this special case. */
if (id == -1
&& symfile_objfile && symfile_objfile->obfd

View File

@ -3477,7 +3477,7 @@ set_length_in_type_chain (struct type *type)
describing the type.
PP points to a character pointer that points to the next unconsumed token
in the the stabs string. For example, given stabs "A:T4=s4a:1,0,32;;",
in the stabs string. For example, given stabs "A:T4=s4a:1,0,32;;",
*PP will point to "4a:1,0,32;;".
TYPE points to an incomplete type that needs to be filled in.

View File

@ -1697,8 +1697,7 @@ get_section_index (struct objfile *objfile, char *section_name)
/* Link SF into the global symtab_fns list. Called on startup by the
_initialize routine in each object file format reader, to register
information about each format the the reader is prepared to
handle. */
information about each format the reader is prepared to handle. */
void
add_symtab_fns (const struct sym_fns *sf)

View File

@ -650,8 +650,8 @@ tui_refresh_all_win (void)
}
/* Resize all the windows based on the the terminal size. This
function gets called from within the readline sinwinch handler. */
/* Resize all the windows based on the terminal size. This function
gets called from within the readline sinwinch handler. */
void
tui_resize_all (void)
{

View File

@ -2616,9 +2616,9 @@ find_overload_match (struct type **arg_types, int nargs,
{
const char *qualified_name = NULL;
/* If the the overload match is being search for both
as a method and non member function, the first argument
must now be dereferenced. */
/* If the overload match is being search for both as a method
and non member function, the first argument must now be
dereferenced. */
if (method == BOTH)
arg_types[0] = TYPE_TARGET_TYPE (arg_types[0]);
@ -2693,9 +2693,9 @@ find_overload_match (struct type **arg_types, int nargs,
switch (compare_badness (func_badness, method_badness))
{
case 0: /* Top two contenders are equally good. */
/* FIXME: GDB does not support the general ambiguous
case. All candidates should be collected and presented
the the user. */
/* FIXME: GDB does not support the general ambiguous case.
All candidates should be collected and presented the
user. */
error (_("Ambiguous overload resolution"));
break;
case 1: /* Incomparable top contenders. */
@ -3177,7 +3177,7 @@ value_aggregate_elt (struct type *curtype, char *name,
}
/* Compares the two method/function types T1 and T2 for "equality"
with respect to the the methods' parameters. If the types of the
with respect to the methods' parameters. If the types of the
two parameter lists are the same, returns 1; 0 otherwise. This
comparison may ignore any artificial parameters in T1 if
SKIP_ARTIFICIAL is non-zero. This function will ALWAYS skip

View File

@ -1303,7 +1303,7 @@ varobj_set_value (struct varobj *var, char *expression)
after assignment, and the first thing value_assign
does is coerce the input.
For example, if we are assigning an array to a pointer variable we
should compare the pointer with the the array's address, not with the
should compare the pointer with the array's address, not with the
array's content. */
value = coerce_array (value);

View File

@ -45,7 +45,7 @@
#include "vax-tdep.h"
#include "inf-ptrace.h"
/* Address of the user structure. This is the the value for 32V; 3BSD
/* Address of the user structure. This is the value for 32V; 3BSD
uses a different value, but hey, who's still using those systems? */
static CORE_ADDR vax_kernel_u_addr = 0x80020000;