};
\f
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* See amd64_collect_native_gregset. This linux specific version handles
amd64_linux_collect_native_gregset (regcache, gregsetp, regnum);
}
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register cache with the floating-point and SSE register
values in *FPREGSETP. */
/* Avoid RAX. */
used_regs_mask |= 1 << EAX_REG_NUM;
- /* Similarily avoid RDX, implicit operand in divides. */
+ /* Similarly avoid RDX, implicit operand in divides. */
used_regs_mask |= 1 << EDX_REG_NUM;
/* Avoid RSP. */
used_regs_mask |= 1 << ESP_REG_NUM;
output_dictionaries ()
{
- output_local_dictionary
- cat "$dictionary"
+ (
+ output_local_dictionary
+ cat "$dictionary"
+ ) | grep -E -v "[A-Z]"
}
parse_dictionary ()
else
rm -f "$cache_dir/$cache_file2".*
- pat=$(grep_join "${words[@]}")
+ declare -a re_words
+ mapfile -t re_words \
+ < <(for f in "${words[@]}"; do
+ echo "$f"
+ done \
+ | sed "s/^\(.\)/[\u\1\1]/")
+
+ pat=$(grep_join "${re_words[@]}")
local before after
before=$(grep_join \
"${grep_separators[@]}" \
"${grep_post[@]}")
+ pat="(${pat@u}|$pat)"
+
pat="$before$pat$after"
grep -E \
"${sed_separators[@]}" \
"${sed_post[@]}")
- local repl
- repl="s%$before$word$after%\1$replacement\2%g"
+ local repl1
+ local repl2
+ repl1="s%$before$word$after%\1$replacement\2%g"
+ repl2="s%$before${word@u}$after%\1${replacement@u}\2%g"
sed -i \
- "$repl" \
+ "$repl1;$repl2" \
"$file"
}
}
\f
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
#endif
\f
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register array with the floating-point register values in
*FPREGSETP. */
#endif
\f
-/* Transfering floating-point and SSE registers to and from GDB. */
+/* Transferring floating-point and SSE registers to and from GDB. */
/* Fetch all registers covered by the PTRACE_GETREGSET request from
process/thread TID and store their values in GDB's register array.
if (!note_data)
return NULL;
- /* Auxillary vector. */
+ /* Auxiliary vector. */
std::optional<gdb::byte_vector> auxv =
target_read_alloc (current_inferior ()->top_target (),
TARGET_OBJECT_AUXV, NULL);
case LOC_LABEL:
case LOC_UNRESOLVED:
- error (_("internal: Unforseen case in m2lex()"));
+ error (_("internal: Unforeseen case in m2lex()"));
default:
error (_("unhandled token in m2lex()"));
\f
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
\f
-/* Transfering floating-point registers between GDB, inferiors and cores.
+/* Transferring floating-point registers between GDB, inferiors and cores.
Since M32R has no floating-point registers, these functions do nothing. */
void
#endif
\f
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* What is the address of fpN within the floating-point register set F? */
#define FPREG_ADDR(f, n) (&(f)->fpregs[(n) * 3])
regcache->raw_collect (OR1K_NPC_REGNUM, regp + 32);
}
-/* Transfering floating-point registers between GDB, inferiors and cores.
+/* Transferring floating-point registers between GDB, inferiors and cores.
Since OpenRISC floating-point registers are the same as GPRs these do
nothing. */
: begin (begin_), end (end_), data (data_), baton (baton_)
{}
- /* Begining address that must be written. */
+ /* Beginning address that must be written. */
ULONGEST begin;
/* Past-the-end address. */
ULONGEST end;
#ifdef TEST_B
.Lb_target:
- ; Artifical nop, so that first b will not branch to itself.
+ ; Artificial nop, so that first b will not branch to itself.
nop_s
; b s25
.set b_s25_target, @.Lb_target
gdb_test "q" ".*"
-# Now the obstack is uninitialized. Excercise it.
+# Now the obstack is uninitialized. Exercise it.
gdb_test_no_output "set pagination off"
gdb_test "print c" ".*" "first print"
56, 58
};
-/* Transfering the general-purpose registers between GDB, inferiors
+/* Transferring the general-purpose registers between GDB, inferiors
and core files. */
/* Fill GDB's register array with the general-purpose register values
regcache->raw_collect (i, regp + regmap[i]);
}
-/* Transfering floating-point registers between GDB, inferiors and cores. */
+/* Transferring floating-point registers between GDB, inferiors and cores. */
/* Fill GDB's register array with the floating-point register values in
*FPREGSETP. */