summaryrefslogtreecommitdiffstats
path: root/libdwfl
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-12-12 19:51:24 +0300
committerMark Wielaard <mark@klomp.org>2020-12-12 18:06:28 +0100
commit3148c21f0ef4677ca85fd8032b97914a46244a09 (patch)
tree241e00b35c0e226b19a2e5b7d90fc770d90d7def /libdwfl
parentlibdwelf: fix spelling typos in comments (diff)
downloadelfutils-3148c21f0ef4677ca85fd8032b97914a46244a09.tar.gz
elfutils-3148c21f0ef4677ca85fd8032b97914a46244a09.tar.bz2
elfutils-3148c21f0ef4677ca85fd8032b97914a46244a09.tar.xz
libdwfl: fix spelling typos in comments and ChangeLog
adresses -> addresses boundery -> boundary explictly -> explicitly fo -> for layed -> laid partical -> particular setion -> section substract -> subtract wil -> will Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'libdwfl')
-rw-r--r--libdwfl/ChangeLog13
-rw-r--r--libdwfl/dwfl_module_getdwarf.c4
-rw-r--r--libdwfl/dwfl_report_elf.c2
-rw-r--r--libdwfl/libdwfl.h8
-rw-r--r--libdwfl/linux-pid-attach.c2
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 @@
12020-12-12 Dmitry V. Levin <ldv@altlinux.org>
2
3 * libdwfl.h: Fix spelling typos in comments.
4 * dwfl_module_getdwarf.c (open_elf, find_symtab): Likewise.
5 * dwfl_report_elf.c (__libdwfl_elf_address_range): Likewise.
6 * linux-pid-attach.c (read_cached_memory): Likewise.
7
12020-12-07 Timm Bäder <tbaeder@redhat.com> 82020-12-07 Timm Bäder <tbaeder@redhat.com>
2 9
3 * link_map.c (report_r_debug): Pull read_addrs() function into 10 * link_map.c (report_r_debug): Pull read_addrs() function into
@@ -816,7 +823,7 @@
816 * link_map.c (check32): Use read_4ubyte_unaligned_noncvt to read 823 * link_map.c (check32): Use read_4ubyte_unaligned_noncvt to read
817 type and value. 824 type and value.
818 (read_addrs): Use read_(4|8)ubyte_unaligned_noncvt or to read 825 (read_addrs): Use read_(4|8)ubyte_unaligned_noncvt or to read
819 adresses. 826 addresses.
820 827
8212015-05-30 Mark Wielaard <mjw@redhat.com> 8282015-05-30 Mark Wielaard <mjw@redhat.com>
822 829
@@ -1738,7 +1745,7 @@
1738 1745
17392013-01-23 Mark Wielaard <mjw@redhat.com> 17462013-01-23 Mark Wielaard <mjw@redhat.com>
1740 1747
1741 * dwfl_module_getdwarf.c (find_aux_sym): Don't substract one 1748 * dwfl_module_getdwarf.c (find_aux_sym): Don't subtract one
1742 from aux_syments by default. 1749 from aux_syments by default.
1743 (find_symtab): Also succeed when only aux_symdata is found. 1750 (find_symtab): Also succeed when only aux_symdata is found.
1744 When no symtab is found always try to load auxiliary table. 1751 When no symtab is found always try to load auxiliary table.
@@ -1746,7 +1753,7 @@
1746 tables have symbols. 1753 tables have symbols.
1747 * dwfl_module_getsym.c (dwfl_module_getsym): Only skip auxiliary 1754 * dwfl_module_getsym.c (dwfl_module_getsym): Only skip auxiliary
1748 zero entry when both tables have symbols. 1755 zero entry when both tables have symbols.
1749 * dwfl_module_addrsym.c (dwfl_module_addrsym): Only substract 1756 * dwfl_module_addrsym.c (dwfl_module_addrsym): Only subtract
1750 one from first_global when both tables have symbols. 1757 one from first_global when both tables have symbols.
1751 1758
17522013-01-16 Mark Wielaard <mjw@redhat.com> 17592013-01-16 Mark Wielaard <mjw@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)
145 } 145 }
146 } 146 }
147 147
148 /* We only want to set the module e_type explictly once, derived from 148 /* We only want to set the module e_type explicitly once, derived from
149 the main ELF file. (It might be changed for the kernel, because 149 the main ELF file. (It might be changed for the kernel, because
150 that is special - see below.) open_elf is always called first for 150 that is special - see below.) open_elf is always called first for
151 the main ELF file, because both find_dw and find_symtab call 151 the main ELF file, because both find_dw and find_symtab call
@@ -1141,7 +1141,7 @@ find_symtab (Dwfl_Module *mod)
1141 1141
1142 /* Cache the data; MOD->syments and MOD->first_global were set 1142 /* Cache the data; MOD->syments and MOD->first_global were set
1143 above. If any of the sections is compressed, uncompress it 1143 above. If any of the sections is compressed, uncompress it
1144 first. Only the string data setion could theoretically be 1144 first. Only the string data section could theoretically be
1145 compressed GNU style (as .zdebug_str). Everything else only ELF 1145 compressed GNU style (as .zdebug_str). Everything else only ELF
1146 gabi style (SHF_COMPRESSED). */ 1146 gabi style (SHF_COMPRESSED). */
1147 1147
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,
85 const GElf_Addr next = (end + align - 1) & -align; 85 const GElf_Addr next = (end + align - 1) & -align;
86 if (shdr->sh_addr == 0 86 if (shdr->sh_addr == 0
87 /* Once we've started doing layout we have to do it all, 87 /* Once we've started doing layout we have to do it all,
88 unless we just layed out the first section at 0 when 88 unless we just laid out the first section at 0 when
89 it already was at 0. */ 89 it already was at 0. */
90 || (bias == 0 && end > start && end != next)) 90 || (bias == 0 && end > start && end != next))
91 { 91 {
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;
42typedef struct Dwfl_Line Dwfl_Line; 42typedef struct Dwfl_Line Dwfl_Line;
43 43
44/* This holds information common for all the frames of one backtrace for 44/* This holds information common for all the frames of one backtrace for
45 a partical thread/task/TID. Several threads belong to one Dwfl. */ 45 a particular thread/task/TID. Several threads belong to one Dwfl. */
46typedef struct Dwfl_Thread Dwfl_Thread; 46typedef struct Dwfl_Thread Dwfl_Thread;
47 47
48/* This holds everything we know about the state of the frame at a particular 48/* 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);
471 471
472/* Find the symbol associated with ADDRESS. Return its name or NULL 472/* Find the symbol associated with ADDRESS. Return its name or NULL
473 when nothing was found. If the architecture uses function 473 when nothing was found. If the architecture uses function
474 descriptors, and symbol st_value points to one, ADDRESS wil be 474 descriptors, and symbol st_value points to one, ADDRESS will be
475 matched against either the adjusted st_value or the associated 475 matched against either the adjusted st_value or the associated
476 function entry value as described in dwfl_module_getsym_info. If 476 function entry value as described in dwfl_module_getsym_info. If
477 OFFSET is not NULL it will be filled in with the difference from 477 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,
556extern Dwfl_Module *dwfl_cumodule (Dwarf_Die *cudie); 556extern Dwfl_Module *dwfl_cumodule (Dwarf_Die *cudie);
557 557
558 558
559/* Cache the source line information fo the CU and return the 559/* Cache the source line information for the CU and return the
560 number of Dwfl_Line entries it has. */ 560 number of Dwfl_Line entries it has. */
561extern int dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines); 561extern int dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines);
562 562
@@ -789,7 +789,7 @@ int dwfl_getthread_frames (Dwfl *dwfl, pid_t tid,
789 789
790/* Return *PC (program counter) for thread-specific frame STATE. 790/* Return *PC (program counter) for thread-specific frame STATE.
791 Set *ISACTIVATION according to DWARF frame "activation" definition. 791 Set *ISACTIVATION according to DWARF frame "activation" definition.
792 Typically you need to substract 1 from *PC if *ACTIVATION is false to safely 792 Typically you need to subtract 1 from *PC if *ACTIVATION is false to safely
793 find function of the caller. ACTIVATION may be NULL. PC must not be NULL. 793 find function of the caller. ACTIVATION may be NULL. PC must not be NULL.
794 Function returns false if it failed to find *PC. */ 794 Function returns false if it failed to find *PC. */
795bool dwfl_frame_pc (Dwfl_Frame *state, Dwarf_Addr *pc, bool *isactivation) 795bool 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,
124 Dwarf_Addr addr, Dwarf_Word *result) 124 Dwarf_Addr addr, Dwarf_Word *result)
125{ 125{
126 /* Let the ptrace fallback deal with the corner case of the address 126 /* Let the ptrace fallback deal with the corner case of the address
127 possibly crossing a page boundery. */ 127 possibly crossing a page boundary. */
128 if ((addr & ((Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - 1)) 128 if ((addr & ((Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - 1))
129 > (Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - sizeof (unsigned long)) 129 > (Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - sizeof (unsigned long))
130 return false; 130 return false;