]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdwfl: fix spelling typos in comments and ChangeLog
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:51:24 +0000 (19:51 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
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>
libdwfl/ChangeLog
libdwfl/dwfl_module_getdwarf.c
libdwfl/dwfl_report_elf.c
libdwfl/libdwfl.h
libdwfl/linux-pid-attach.c

index c7f81acdbab61f0da6906e14205b23a3c31469a8..fc64eafdf31e826c8fa5d1ee34f7cec44878880d 100644 (file)
@@ -1,3 +1,10 @@
+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>
index 56e610545a13d6ffcac7ae9b6c1fc83c186e5289..2f3dd0dd002f68652be0cc0b3d8f7c533af98fe4 100644 (file)
@@ -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).  */
 
index 3fc9384a4e22d4ea757c50f67174207598122076..9da86698bd1ba6c9621b2eca2218d296f57d1028 100644 (file)
@@ -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))
                {
index d5fa06d476bd90cd3c3f83c1805014f4b5cdb49d..f98f1d525d94bc7bcfc7c816890de5907ee4bd6d 100644 (file)
@@ -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)
index b23139d96f67e2b7a92c77f6aa3001a854cdeb18..fdf5c9b1e0b919c1ee1475059a383b6223218b3f 100644 (file)
@@ -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;