adresses -> addresses boundery -> boundary explictly -> explicitly fo -> for layed -> laid partical -> particular setion -> section substract -> subtract wil -> will
Signed-off-by: Dmitry V. Levin <l...@altlinux.org> --- libdwfl/ChangeLog | 13 ++++++++++--- libdwfl/dwfl_module_getdwarf.c | 4 ++-- libdwfl/dwfl_report_elf.c | 2 +- libdwfl/libdwfl.h | 8 ++++---- libdwfl/linux-pid-attach.c | 2 +- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index c7f81acd..fc64eafd 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,10 @@ +2020-12-12 Dmitry V. Levin <l...@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 <tbae...@redhat.com> * link_map.c (report_r_debug): Pull read_addrs() function into @@ -816,7 +823,7 @@ * 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 <m...@redhat.com> @@ -1738,7 +1745,7 @@ 2013-01-23 Mark Wielaard <m...@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. @@ -1746,7 +1753,7 @@ 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 <m...@redhat.com> diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index 56e61054..2f3dd0dd 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c @@ -145,7 +145,7 @@ open_elf (Dwfl_Module *mod, struct dwfl_file *file) } } - /* 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 @@ -1141,7 +1141,7 @@ find_symtab (Dwfl_Module *mod) /* 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). */ diff --git a/libdwfl/dwfl_report_elf.c b/libdwfl/dwfl_report_elf.c index 3fc9384a..9da86698 100644 --- a/libdwfl/dwfl_report_elf.c +++ b/libdwfl/dwfl_report_elf.c @@ -85,7 +85,7 @@ __libdwfl_elf_address_range (Elf *elf, GElf_Addr base, bool add_p_vaddr, 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)) { diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index d5fa06d4..f98f1d52 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -42,7 +42,7 @@ typedef struct Dwfl_Module Dwfl_Module; 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 @@ -471,7 +471,7 @@ extern const char *dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr address); /* 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 @@ -556,7 +556,7 @@ extern Dwarf_Die *dwfl_module_nextcu (Dwfl_Module *mod, 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); @@ -789,7 +789,7 @@ int dwfl_getthread_frames (Dwfl *dwfl, pid_t tid, /* 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) diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c index b23139d9..fdf5c9b1 100644 --- a/libdwfl/linux-pid-attach.c +++ b/libdwfl/linux-pid-attach.c @@ -124,7 +124,7 @@ read_cached_memory (struct __libdwfl_pid_arg *pid_arg, 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; -- ldv