+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.
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>
/* 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.
}
/* 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. */
/* 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)
{
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;
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))
/* 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. */
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
/* 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);
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. */
Dwarf_Lines *lines;
};
-/* Valid indeces for the section data. */
+/* Valid indices for the section data. */
enum
{
IDX_debug_info = 0,
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)