From: "Dmitry V. Levin" <ldv@altlinux.org>
To: elfutils-devel@sourceware.org
Subject: [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog
Date: Sat, 12 Dec 2020 19:51:08 +0300 [thread overview]
Message-ID: <20201212165108.GF503@altlinux.org> (raw)
In-Reply-To: <20201212164901.GA474@altlinux.org>
Retieve -> Retrieve
apporiate -> appropriate
distinquish -> distinguish
dynamicly -> dynamically
indeces -> indices
lenght -> length
minium -> minimum
occured -> occurred
setion -> section
unknow -> unknown
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
libdw/ChangeLog | 11 ++++++++++-
libdw/dwarf.h | 2 +-
libdw/dwarf_begin_elf.c | 2 +-
libdw/dwarf_getlocation.c | 4 ++--
libdw/dwarf_getsrclines.c | 2 +-
libdw/libdw.h | 10 +++++-----
libdw/libdwP.h | 4 ++--
7 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 2d552544..ab568f55 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,12 @@
+2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
+
+ * dwarf.h: Fix spelling typo in comment.
+ * dwarf_begin_elf.c (dwarf_begin_elf): Likewise.
+ * dwarf_getlocation.c (attr_ok, __libdw_intern_expression): Likewise.
+ * dwarf_getsrclines.c (read_srclines): Likewise.
+ * libdw.h: Fix spelling typos in comments.
+ * libdwP.h: Likewise.
+
2020-12-09 Dmitry V. Levin <ldv@altlinux.org>
* Makefile.am (noinst_PROGRAMS): Rename to noinst_DATA.
@@ -180,7 +189,7 @@
2019-02-02 Mark Wielaard <mark@klomp.org>
* dwarf_nextcu.c (__libdw_next_unit): Define bytes_end.
- Check there are enough bytes to read extended lenght, version
+ Check there are enough bytes to read extended length, version
and unit.
2019-01-20 Mark Wielaard <mark@klomp.org>
diff --git a/libdw/dwarf.h b/libdw/dwarf.h
index 98b10437..19a4be96 100644
--- a/libdw/dwarf.h
+++ b/libdw/dwarf.h
@@ -1014,7 +1014,7 @@ enum
/* Section 7.2.2 of the DWARF3 specification defines a range of escape
codes that can appear in the length field of certain DWARF structures.
- These defines enumerate the minium and maximum values of this range.
+ These defines enumerate the minimum and maximum values of this range.
Currently only the maximum value is used (to indicate that 64-bit
values are going to be used in the dwarf data that accompanies the
structure). The other values are reserved.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index 474ed138..757ac4fa 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
@@ -457,7 +457,7 @@ dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp)
}
/* If the caller provides a section group we get the DWARF
- sections only from this setion group. Otherwise we search
+ sections only from this section group. Otherwise we search
for the first section with the required name. Further
sections with the name are ignored. The DWARF specification
does not really say this is allowed. */
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index f2bad5a9..4e582db2 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -50,7 +50,7 @@ attr_ok (Dwarf_Attribute *attr)
/* Otherwise must be one of the attributes listed below. Older
DWARF versions might have encoded the exprloc as block, and we
- cannot easily distinquish attributes in the loclist class because
+ cannot easily distinguish attributes in the loclist class because
the same forms are used for different classes. */
switch (attr->code)
{
@@ -388,7 +388,7 @@ __libdw_intern_expression (Dwarf *dbg, bool other_byte_order,
invalid:
__libdw_seterrno (DWARF_E_INVALID_DWARF);
returnmem:
- /* Free any dynamicly allocated loclists, if any. */
+ /* Free any dynamically allocated loclists, if any. */
while (n > MAX_STACK_LOCS)
{
struct loclist *loc = loclist;
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
index 75ec9c79..d6a581ad 100644
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -757,7 +757,7 @@ read_srclines (Dwarf *dbg,
case DW_LNE_set_address:
/* The value is an address. The size is defined as
- apporiate for the target machine. We use the
+ appropriate for the target machine. We use the
address size field from the CU header. */
state.op_index = 0;
if (unlikely (lineendp - linep < (uint8_t) address_size))
diff --git a/libdw/libdw.h b/libdw/libdw.h
index f63cab1b..77174d28 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -243,7 +243,7 @@ extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp);
/* Retrieve ELF descriptor used for DWARF access. */
extern Elf *dwarf_getelf (Dwarf *dwarf);
-/* Retieve DWARF descriptor used for a Dwarf_Die or Dwarf_Attribute.
+/* Retrieve DWARF descriptor used for a Dwarf_Die or Dwarf_Attribute.
A Dwarf_Die or a Dwarf_Attribute is associated with a particular
Dwarf_CU handle. This function returns the DWARF descriptor for
that Dwarf_CU. */
@@ -429,7 +429,7 @@ extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
given DIE) that isn't a type alias or qualifier type. Returns 1
when RESULT contains a type alias or qualifier Dwarf_Die that
couldn't be peeled further (it doesn't have a DW_TAG_type
- attribute). Returns -1 when an error occured.
+ attribute). Returns -1 when an error occurred.
The current DWARF specification defines one type alias tag
(DW_TAG_typedef) and seven modifier/qualifier type tags
@@ -696,13 +696,13 @@ extern int dwarf_linediscriminator (Dwarf_Line *line, unsigned int *discp)
/* Find line information for address. The returned string is NULL when
- an error occured, or the file path. The file path is either absolute
+ an error occurred, or the file path. The file path is either absolute
or relative to the compilation directory. See dwarf_decl_file. */
extern const char *dwarf_linesrc (Dwarf_Line *line,
Dwarf_Word *mtime, Dwarf_Word *length);
/* Return file information. The returned string is NULL when
- an error occured, or the file path. The file path is either absolute
+ an error occurred, or the file path. The file path is either absolute
or relative to the compilation directory. See dwarf_decl_file. */
extern const char *dwarf_filesrc (Dwarf_Files *file, size_t idx,
Dwarf_Word *mtime, Dwarf_Word *length);
@@ -900,7 +900,7 @@ extern ptrdiff_t dwarf_getfuncs (Dwarf_Die *cudie,
directory can be retrieved through:
dwarf_formstring (dwarf_attr (dwarf_diecu (decl, &cudie, NULL, NULL),
DW_AT_comp_dir, &attr));
- Returns NULL if no decl_file could be found or an error occured. */
+ Returns NULL if no decl_file could be found or an error occurred. */
extern const char *dwarf_decl_file (Dwarf_Die *decl);
/* Get line number of beginning of given declaration. */
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index 36c2acd9..c18eea43 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -68,7 +68,7 @@ struct files_lines_s
Dwarf_Lines *lines;
};
-/* Valid indeces for the section data. */
+/* Valid indices for the section data. */
enum
{
IDX_debug_info = 0,
@@ -438,7 +438,7 @@ __libdw_first_die_from_cu_start (Dwarf_Off cu_start,
Both signature and type offset are optional.
Note same 4/8 offset size trick as above.
- We explicitly ignore unknow unit types (see asserts above). */
+ We explicitly ignore unknown unit types (see asserts above). */
off += 3 * offset_size - 4 + 4;
if (unit_type == DW_UT_skeleton || unit_type == DW_UT_split_compile
|| unit_type == DW_UT_type || unit_type == DW_UT_split_type)
--
ldv
next prev parent reply other threads:[~2020-12-12 16:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 02/12] backends: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 03/12] config: fix spelling typos in comments and %changelog Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 04/12] libasm: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 05/12] libcpu: " Dmitry V. Levin
2020-12-12 16:51 ` Dmitry V. Levin [this message]
2020-12-12 16:51 ` [PATCH 07/12] libdwelf: " Dmitry V. Levin
2020-12-12 16:51 ` [PATCH 08/12] libdwfl: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 09/12] libelf: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac Dmitry V. Levin
2020-12-12 17:17 ` [PATCH 00/12] Fix spelling typos in comments, tests, and text files Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201212165108.GF503@altlinux.org \
--to=ldv@altlinux.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).