Minor spelling fixes in gdb directory

I ran codespell on the gdb directory and fixed a number of minor
problems.  In a couple cases I replaced a "gdb spelling" (e.g.,
"readin") with an English one ("reading") where it seemed harmless.

I also added "Synopsis" as an accepted spelling.

gdb is nowhere near codespell-clean.

Approved-By: Tom de Vries <tdevries@suse.de>
This commit is contained in:
Tom Tromey
2025-04-10 09:01:06 -06:00
parent 14dd98b0f7
commit 1305119a7e
14 changed files with 23 additions and 22 deletions

View File

@@ -492,7 +492,7 @@ sim/ See sim/MAINTAINERS
readline/ Master version: ftp://ftp.cwru.edu/pub/bash/
ALL
Host maintainers (host dependant parts)
Host maintainers (host dependent parts)
(but get your changes into the master version)
tcl/ tk/ itcl/ ALL

View File

@@ -265,7 +265,7 @@ INCSUPPORT = \
-I..
#
# CLI sub directory definitons
# CLI sub directory definitions
#
SUBDIR_CLI_SRCS = \
cli/cli-cmds.c \
@@ -282,7 +282,7 @@ SUBDIR_CLI_SRCS = \
SUBDIR_CLI_OBS = $(patsubst %.c,%.o,$(SUBDIR_CLI_SRCS))
#
# MI sub directory definitons
# MI sub directory definitions
#
SUBDIR_MI_SRCS = \
mi/mi-cmd-break.c \
@@ -350,7 +350,7 @@ SUBDIR_GCC_COMPILE_SRCS = \
SUBDIR_GCC_COMPILE_OBS = $(patsubst %.c,%.o,$(filter %.c,$(SUBDIR_GCC_COMPILE_SRCS)))
#
# Guile sub directory definitons for guile support.
# Guile sub directory definitions for guile support.
#
SUBDIR_GUILE_SRCS = \
guile/guile.c \
@@ -387,7 +387,7 @@ SUBDIR_GUILE_LDFLAGS =
SUBDIR_GUILE_CFLAGS =
#
# python sub directory definitons
# python sub directory definitions
#
SUBDIR_PYTHON_SRCS = \
python/py-arch.c \

View File

@@ -7570,7 +7570,7 @@ for DW_OP_piece is still missing).
A number of long standing bugs that caused GDB to die while starting a
Java application have been fixed. GDB's Java support is now
considered "useable".
considered "usable".
* GNU/Linux support for fork, vfork, and exec.

View File

@@ -1669,7 +1669,7 @@ arm_analyze_load_stack_chk_guard(CORE_ADDR pc, struct gdbarch *gdbarch,
ldr Rn, .Label
....
.Lable:
.Label:
.word __stack_chk_guard
Since ldr/str is a very popular instruction, we can't use them as

2
gdb/configure vendored
View File

@@ -31616,7 +31616,7 @@ if test "$gdb_cv_var_elf" = yes; then
$as_echo "#define HAVE_ELF 1" >>confdefs.h
# -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
# -ldl is provided by bfd/Makefile.am (LIBDL) <PLUGINS>.
if test "$plugins" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }

View File

@@ -1922,7 +1922,7 @@ if test "$gdb_cv_var_elf" = yes; then
gcore-elf.o elf-none-tdep.o"
AC_DEFINE(HAVE_ELF, 1,
[Define if ELF support should be included.])
# -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
# -ldl is provided by bfd/Makefile.am (LIBDL) <PLUGINS>.
if test "$plugins" = "yes"; then
AC_SEARCH_LIBS(dlopen, dl)
fi

View File

@@ -50,7 +50,7 @@ if [ -z "${tempdir}" ] ; then
fi
fi
# Default location of generate index.hmtl web page.
# Default location of generated index.html web page.
if [ -z "${webdir}" ] ; then
# Use 'branch' subdir name if Tag contains branch
if [ -f "${srcdir}/gdb/CVS/Tag" ] ; then

View File

@@ -60,7 +60,7 @@ Options:
-Werror Treat all problems as errors.
-Wall Report all problems.
-Wari Report problems that should be fixed in new code.
-WCATEGORY Report problems in the specifed category. The category
-WCATEGORY Report problems in the specified category. The category
can be prefixed with "no-". Valid categories
are: ${all}
EOF
@@ -159,7 +159,7 @@ BEGIN {
PWD = "'`pwd`'"
}
# Print the error message for BUG. Append SUPLEMENT if non-empty.
# Print the error message for BUG. Append SUPPLEMENT if non-empty.
function print_bug(file,line,prefix,category,bug,doc,supplement, suffix,idx) {
if (print_idx) {
idx = bug ": "

View File

@@ -176,7 +176,7 @@ fi
# THIS HAS SUFFERED BIT ROT
if ${check_indent_p} && test -d "${srcdir}"
then
printf "Analizing file indentation:" 1>&2
printf "Analyzing file indentation:" 1>&2
( cd "${srcdir}" && /bin/sh ${aridir}/gdb_find.sh ${project} | while read f
do
if /bin/sh ${aridir}/gdb_indent.sh < ${f} 2>/dev/null | cmp -s - ${f}
@@ -550,7 +550,7 @@ function print_heading (nb_file, where, bug_i) {
for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
bug = i2bug[bug_i];
printf "<th>"
# The title names are offset by one. Otherwize, when the browser
# The title names are offset by one. Otherwise, when the browser
# jumps to the name it leaves out half the relevant column.
#printf "<a name=\",%s\">&nbsp;</a>", bug
printf "<a name=\",%s\">&nbsp;</a>", i2bug[bug_i-1]
@@ -851,7 +851,7 @@ EOF
print_toc 0 -1 deprecate Deprecate <<EOF
Mechanisms that are a candidate for being made obsolete. Once core
GDB no longer depends on these mechanisms and/or there is a
replacement available, these mechanims can be deprecated (adding the
replacement available, these mechanisms can be deprecated (adding the
deprecated prefix) obsoleted (put into category obsolete) or deleted.
See obsolete and deprecated.
EOF

View File

@@ -1,2 +1,3 @@
configury
SME
Synopsys

View File

@@ -34,11 +34,11 @@ data_directory_opt=()
function print_usage() {
prefix="Usage: $0"
paddin=$(printf '%*s' ${#prefix})
padding=$(printf '%*s' ${#prefix})
echo "$prefix [-h|--help] [-v|--version]"
echo "$paddin [-a] [-o prefix] [-d data-directory]"
echo "$paddin pid1 [pid2...pidN]"
echo "$padding [-a] [-o prefix] [-d data-directory]"
echo "$padding pid1 [pid2...pidN]"
}
function print_try_help() {

View File

@@ -122,7 +122,7 @@ class StructTypePrettyPrinter:
class StructMainTypePrettyPrinter:
"""Pretty-print an objet of type main_type"""
"""Pretty-print an object of type main_type"""
def __init__(self, val):
self.val = val

View File

@@ -20,9 +20,9 @@
#ifndef GDB_GDB_STABS_H
#define GDB_GDB_STABS_H
/* During initial symbol readin, we need to have a structure to keep
/* During initial symbol reading, we need to have a structure to keep
track of which psymtabs have which bincls in them. This structure
is used during readin to setup the list of dependencies within each
is used during reading to setup the list of dependencies within each
partial symbol table. */
struct legacy_psymtab;

View File

@@ -261,7 +261,7 @@ echo "done."
# Clean up build directory if necessary.
if ${clean}
then
echo "cleanning up $dir"
echo "cleaning up $dir"
rm -rf ${dir}
fi