+2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
+
+ * libdwfl.h: Fix spelling typos in comments.
+ * dwfl_module_getdwarf.c (open_elf, find_symtab): Likewise.
+ * dwfl_report_elf.c (__libdwfl_elf_address_range): Likewise.
+ * linux-pid-attach.c (read_cached_memory): Likewise.
+
2020-12-07 Timm Bäder <tbaeder@redhat.com>
* link_map.c (report_r_debug): Pull read_addrs() function into
* link_map.c (check32): Use read_4ubyte_unaligned_noncvt to read
type and value.
(read_addrs): Use read_(4|8)ubyte_unaligned_noncvt or to read
- adresses.
+ addresses.
2015-05-30 Mark Wielaard <mjw@redhat.com>
2013-01-23 Mark Wielaard <mjw@redhat.com>
- * dwfl_module_getdwarf.c (find_aux_sym): Don't substract one
+ * dwfl_module_getdwarf.c (find_aux_sym): Don't subtract one
from aux_syments by default.
(find_symtab): Also succeed when only aux_symdata is found.
When no symtab is found always try to load auxiliary table.
tables have symbols.
* dwfl_module_getsym.c (dwfl_module_getsym): Only skip auxiliary
zero entry when both tables have symbols.
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Only substract
+ * dwfl_module_addrsym.c (dwfl_module_addrsym): Only subtract
one from first_global when both tables have symbols.
2013-01-16 Mark Wielaard <mjw@redhat.com>
}
}
- /* We only want to set the module e_type explictly once, derived from
+ /* We only want to set the module e_type explicitly once, derived from
the main ELF file. (It might be changed for the kernel, because
that is special - see below.) open_elf is always called first for
the main ELF file, because both find_dw and find_symtab call
/* Cache the data; MOD->syments and MOD->first_global were set
above. If any of the sections is compressed, uncompress it
- first. Only the string data setion could theoretically be
+ first. Only the string data section could theoretically be
compressed GNU style (as .zdebug_str). Everything else only ELF
gabi style (SHF_COMPRESSED). */
const GElf_Addr next = (end + align - 1) & -align;
if (shdr->sh_addr == 0
/* Once we've started doing layout we have to do it all,
- unless we just layed out the first section at 0 when
+ unless we just laid out the first section at 0 when
it already was at 0. */
|| (bias == 0 && end > start && end != next))
{
typedef struct Dwfl_Line Dwfl_Line;
/* This holds information common for all the frames of one backtrace for
- a partical thread/task/TID. Several threads belong to one Dwfl. */
+ a particular thread/task/TID. Several threads belong to one Dwfl. */
typedef struct Dwfl_Thread Dwfl_Thread;
/* This holds everything we know about the state of the frame at a particular
/* Find the symbol associated with ADDRESS. Return its name or NULL
when nothing was found. If the architecture uses function
- descriptors, and symbol st_value points to one, ADDRESS wil be
+ descriptors, and symbol st_value points to one, ADDRESS will be
matched against either the adjusted st_value or the associated
function entry value as described in dwfl_module_getsym_info. If
OFFSET is not NULL it will be filled in with the difference from
extern Dwfl_Module *dwfl_cumodule (Dwarf_Die *cudie);
-/* Cache the source line information fo the CU and return the
+/* Cache the source line information for the CU and return the
number of Dwfl_Line entries it has. */
extern int dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines);
/* Return *PC (program counter) for thread-specific frame STATE.
Set *ISACTIVATION according to DWARF frame "activation" definition.
- Typically you need to substract 1 from *PC if *ACTIVATION is false to safely
+ Typically you need to subtract 1 from *PC if *ACTIVATION is false to safely
find function of the caller. ACTIVATION may be NULL. PC must not be NULL.
Function returns false if it failed to find *PC. */
bool dwfl_frame_pc (Dwfl_Frame *state, Dwarf_Addr *pc, bool *isactivation)
Dwarf_Addr addr, Dwarf_Word *result)
{
/* Let the ptrace fallback deal with the corner case of the address
- possibly crossing a page boundery. */
+ possibly crossing a page boundary. */
if ((addr & ((Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - 1))
> (Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - sizeof (unsigned long))
return false;