# Starting with NDK version 9, <elf.h> actually includes definitions
# of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
# <sys/exec_elf.h> which defines some of the ELF types incorrectly,
- # leading to conflicts with the defintions from <linux/elf.h>.
+ # leading to conflicts with the definitions from <linux/elf.h>.
# This makes it impossible for us to include both <elf.h> and
# <linux/elf.h>, which means that, in practice, we do not have
# access to Elf32_auxv_t and Elf64_auxv_t on this platform.
# Starting with NDK version 9, <elf.h> actually includes definitions
# of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
# <sys/exec_elf.h> which defines some of the ELF types incorrectly,
- # leading to conflicts with the defintions from <linux/elf.h>.
+ # leading to conflicts with the definitions from <linux/elf.h>.
# This makes it impossible for us to include both <elf.h> and
# <linux/elf.h>, which means that, in practice, we do not have
# access to Elf32_auxv_t and Elf64_auxv_t on this platform.
}
/* Packet starts with '+$' or '$', we don't want to calculate those
- to the checksum, substract the offset to adjust the line length.
+ to the checksum, subtract the offset to adjust the line length.
If the line starts with '$', the offset remains set to 1. */
if (line[0] == '+')
offset = 2;
fp->fctrl = regcache_raw_get_unsigned_by_name (regcache, "fctrl");
fp->fstat = regcache_raw_get_unsigned_by_name (regcache, "fstat");
- /* Convert to the simplifed tag form stored in fxsave data. */
+ /* Convert to the simplified tag form stored in fxsave data. */
val = regcache_raw_get_unsigned_by_name (regcache, "ftag");
val2 = 0;
for (i = 7; i >= 0; i--)
fp->fstat = val;
}
- /* Convert to the simplifed tag form stored in fxsave data. */
+ /* Convert to the simplified tag form stored in fxsave data. */
val = regcache_raw_get_unsigned_by_name (regcache, "ftag");
val2 = 0;
for (i = 7; i >= 0; i--)
collect_register_by_name (regcache, "pc", &(regbuf->scratch.ret));
/* Currently ARC Linux ptrace doesn't allow writes to status32 because
- some of its bits are kernel mode-only and shoudn't be writable from
+ some of its bits are kernel mode-only and shouldn't be writable from
user-space. Writing status32 from debugger could be useful, though,
so ability to write non-privileged bits will be added to kernel
sooner or later. */
return 1;
}
-/* Followings are frequently used ds-form instructions. */
+/* Following are frequently used ds-form instructions. */
#define GEN_STD(buf, rs, ra, offset) gen_ds_form (buf, 62, rs, ra, offset, 0)
#define GEN_STDU(buf, rs, ra, offset) gen_ds_form (buf, 62, rs, ra, offset, 1)
return 1;
}
-/* Followings are frequently used d-form instructions. */
+/* Following are frequently used d-form instructions. */
#define GEN_ADDI(buf, rt, ra, si) gen_d_form (buf, 14, rt, ra, si)
#define GEN_ADDIS(buf, rt, ra, si) gen_d_form (buf, 15, rt, ra, si)
return 1;
}
-/* Followings are frequently used xfx-form instructions. */
+/* Following are frequently used xfx-form instructions. */
#define GEN_MFSPR(buf, rt, spr) gen_xfx_form (buf, 31, rt, spr, 339)
#define GEN_MTSPR(buf, rt, spr) gen_xfx_form (buf, 31, rt, spr, 467)
return 1;
}
-/* Followings are frequently used x-form instructions. */
+/* Following are frequently used x-form instructions. */
#define GEN_OR(buf, ra, rs, rb) gen_x_form (buf, 31, rs, ra, rb, 444, 0)
#define GEN_MR(buf, ra, rs) GEN_OR (buf, ra, rs, rs)
17 *8, /* pc */
18 *8, /* npc */
16 *8, /* state */
- /* FSR offset also corresponds to GET/SETFPREGSET, ans is placed
+ /* FSR offset also corresponds to GET/SETFPREGSET, and is placed
next to f62. */
32 *8, /* fsr */
-1, /* fprs */
1. At any time, when something interesting FOO happens, a object
of 'struct notif_event' or its sub-class EVENT is created for FOO.
- 2. Enque EVENT to the 'queue' field of 'struct notif_server' for
+ 2. Enqueue EVENT to the 'queue' field of 'struct notif_server' for
FOO and send corresponding notification packet to GDB if EVENT is
the first one.
#1 and #2 are done by function 'notif_push'.
3. EVENT is not deque'ed until the ack of FOO from GDB arrives.
Before ack of FOO arrives, FOO happens again, a new object of
- EVENT is created and enque EVENT silently.
+ EVENT is created and enqueue EVENT silently.
Once GDB has a chance to ack to FOO, it sends an ack to GDBserver,
and GDBserver repeatedly sends events to GDB and gets ack of FOO,
until queue is empty. Then, GDBserver sends 'OK' to GDB that all