From: Tom de Vries Date: Thu, 6 Mar 2025 14:34:43 +0000 (+0100) Subject: [gdbserver] Fix some typos X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=606062ac5b194052371e1e3ba9465912a11a27ee;p=thirdparty%2Fbinutils-gdb.git [gdbserver] Fix some typos Fix typos in gdbserver: ... gdbreplay.cc:444: substract ==> subtract notif.cc:35: Enque ==> Enqueue notif.cc:42: enque ==> enqueue i387-fp.cc:233: simplifed ==> simplified i387-fp.cc:508: simplifed ==> simplified linux-arc-low.cc:221: shoudn't ==> shouldn't linux-sparc-low.cc:112: ans ==> and linux-ppc-low.cc:1134: Followings ==> Following linux-ppc-low.cc:1160: Followings ==> Following linux-ppc-low.cc:1193: Followings ==> Following linux-ppc-low.cc:1226: Followings ==> Following configure.ac:141: defintions ==> definitions ... Regenerate configure from configure.ac using autoconf. --- diff --git a/gdbserver/configure b/gdbserver/configure index 7ff11247e51..25b431e8b42 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -14083,7 +14083,7 @@ case "${target}" in # Starting with NDK version 9, actually includes definitions # of Elf32_auxv_t and Elf64_auxv_t. But sadly, includes # which defines some of the ELF types incorrectly, - # leading to conflicts with the defintions from . + # leading to conflicts with the definitions from . # This makes it impossible for us to include both and # , which means that, in practice, we do not have # access to Elf32_auxv_t and Elf64_auxv_t on this platform. diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac index 7a15b8fad99..2abe93e3b9d 100644 --- a/gdbserver/configure.ac +++ b/gdbserver/configure.ac @@ -138,7 +138,7 @@ case "${target}" in # Starting with NDK version 9, actually includes definitions # of Elf32_auxv_t and Elf64_auxv_t. But sadly, includes # which defines some of the ELF types incorrectly, - # leading to conflicts with the defintions from . + # leading to conflicts with the definitions from . # This makes it impossible for us to include both and # , which means that, in practice, we do not have # access to Elf32_auxv_t and Elf64_auxv_t on this platform. diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc index 58e584b0653..7f19faf6e45 100644 --- a/gdbserver/gdbreplay.cc +++ b/gdbserver/gdbreplay.cc @@ -441,7 +441,7 @@ play (FILE *fp) } /* 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; diff --git a/gdbserver/i387-fp.cc b/gdbserver/i387-fp.cc index 0bf57a3aa5d..bb7b2fcc86c 100644 --- a/gdbserver/i387-fp.cc +++ b/gdbserver/i387-fp.cc @@ -230,7 +230,7 @@ i387_cache_to_fxsave (struct regcache *regcache, void *buf) 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--) @@ -505,7 +505,7 @@ i387_cache_to_xsave (struct regcache *regcache, void *buf) 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--) diff --git a/gdbserver/linux-arc-low.cc b/gdbserver/linux-arc-low.cc index 16d8d5824aa..2d408bf71d0 100644 --- a/gdbserver/linux-arc-low.cc +++ b/gdbserver/linux-arc-low.cc @@ -218,7 +218,7 @@ arc_fill_gregset (struct regcache *regcache, void *buf) 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. */ diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc index 3ce978f4c7c..4fd0ebe7aee 100644 --- a/gdbserver/linux-ppc-low.cc +++ b/gdbserver/linux-ppc-low.cc @@ -1131,7 +1131,7 @@ gen_ds_form (uint32_t *buf, int opcd, int rst, int ra, int ds, int xo) 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) @@ -1157,7 +1157,7 @@ gen_d_form (uint32_t *buf, int opcd, int rst, int ra, int si) 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) @@ -1190,7 +1190,7 @@ gen_xfx_form (uint32_t *buf, int opcd, int rst, int ri, int xo) 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) @@ -1223,7 +1223,7 @@ gen_x_form (uint32_t *buf, int opcd, int rst, int ra, int rb, int xo, int rc) 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) diff --git a/gdbserver/linux-sparc-low.cc b/gdbserver/linux-sparc-low.cc index 4192bd3984e..1ad4122063a 100644 --- a/gdbserver/linux-sparc-low.cc +++ b/gdbserver/linux-sparc-low.cc @@ -109,7 +109,7 @@ static int sparc_regmap[] = { 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 */ diff --git a/gdbserver/notif.cc b/gdbserver/notif.cc index dac3c3b1bab..60478dc618e 100644 --- a/gdbserver/notif.cc +++ b/gdbserver/notif.cc @@ -32,14 +32,14 @@ 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