diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coredump/_UCD_get_mapinfo_linux.c | 2 | ||||
-rw-r--r-- | src/coredump/ucd_file_table.c | 4 | ||||
-rw-r--r-- | src/dwarf/Gexpr.c | 2 | ||||
-rw-r--r-- | src/dwarf/Gfde.c | 8 | ||||
-rw-r--r-- | src/dwarf/Gfind_proc_info-lsb.c | 2 | ||||
-rw-r--r-- | src/dwarf/Gfind_unwind_table.c | 12 | ||||
-rw-r--r-- | src/elfxx.c | 2 | ||||
-rw-r--r-- | src/ia64/Gscript.c | 2 | ||||
-rw-r--r-- | src/ia64/Gtables.c | 2 | ||||
-rw-r--r-- | src/ppc32/init.h | 2 | ||||
-rw-r--r-- | src/tilegx/Gstep.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gstash_frame.c | 2 |
12 files changed, 21 insertions, 21 deletions
diff --git a/src/coredump/_UCD_get_mapinfo_linux.c b/src/coredump/_UCD_get_mapinfo_linux.c index ac2df590..0d04f01a 100644 --- a/src/coredump/_UCD_get_mapinfo_linux.c +++ b/src/coredump/_UCD_get_mapinfo_linux.c @@ -70,7 +70,7 @@ static const size_t mapinfo_offset = sizeof (core_nt_file_hdr_t); * @param[in] arg The user-supplied callback argument * * The CORE/NT_FILE note type contains a list of start/end virtual addresses - * within the core file and an associated filename. The purpose is to mape + * within the core file and an associated filename. The purpose is to map * various segments loaded into memory from ELF files with the ELF file from * which those segments were loaded. * diff --git a/src/coredump/ucd_file_table.c b/src/coredump/ucd_file_table.c index e6d966be..15e07047 100644 --- a/src/coredump/ucd_file_table.c +++ b/src/coredump/ucd_file_table.c @@ -40,7 +40,7 @@ * * Stores the filename in the object and sets the fd to an uninitialized state. * - * @returns UNW_ESUCCESS on success, a negated `unw_erro_t` code otherwise. + * @returns UNW_ESUCCESS on success, a negated `unw_error_t` code otherwise. */ unw_error_t ucd_file_init (ucd_file_t *ucd_file, char const *filename) @@ -156,7 +156,7 @@ ucd_file_unmap (ucd_file_t *ucd_file) * Initialize a UCD file table. * @param[in] ucd_file_table The UCD file table to initialize. * - * @returns UNW_ESUCCESS on success, a negated `unw_erro_t` code otherwise. + * @returns UNW_ESUCCESS on success, a negated `unw_error_t` code otherwise. */ unw_error_t ucd_file_table_init (ucd_file_table_t *ucd_file_table) diff --git a/src/dwarf/Gexpr.c b/src/dwarf/Gexpr.c index 977c5593..c510795b 100644 --- a/src/dwarf/Gexpr.c +++ b/src/dwarf/Gexpr.c @@ -265,7 +265,7 @@ if (stackerror) \ return -UNW_EINVAL; \ } -// Removed the parentheses on the asignment +// Removed the parentheses on the assignment // to allow the extra stack error check // when x is evaluated # define push(x) \ diff --git a/src/dwarf/Gfde.c b/src/dwarf/Gfde.c index 3d3edaac..3847d0a0 100644 --- a/src/dwarf/Gfde.c +++ b/src/dwarf/Gfde.c @@ -141,10 +141,10 @@ parse_cie (unw_addr_space_t as, unw_accessors_t *a, unw_word_t addr, if (version > 3) { - if((ret = dwarf_readu8(as, a, &addr, &address_size, arg)) < 0) + if((ret = dwarf_readu8(as, a, &addr, &address_size, arg)) < 0) return ret; - if((ret = dwarf_readu8(as, a, &addr, &segment_size, arg)) < 0) + if((ret = dwarf_readu8(as, a, &addr, &segment_size, arg)) < 0) return ret; } @@ -223,8 +223,8 @@ parse_cie (unw_addr_space_t as, unw_accessors_t *a, unw_word_t addr, return 0; } -/* Extract proc-info from the FDE starting at adress ADDR. - +/* Extract proc-info from the FDE starting at address ADDR. + Pass BASE as zero for eh_frame behaviour, or a pointer to debug_frame base for debug_frame behaviour. */ diff --git a/src/dwarf/Gfind_proc_info-lsb.c b/src/dwarf/Gfind_proc_info-lsb.c index 8274733e..196cfca3 100644 --- a/src/dwarf/Gfind_proc_info-lsb.c +++ b/src/dwarf/Gfind_proc_info-lsb.c @@ -658,7 +658,7 @@ dwarf_callback (struct dl_phdr_info *info, size_t size, void *ptr) { if (p_dynamic) { - /* For dynamicly linked executables and shared libraries, + /* For dynamically linked executables and shared libraries, DT_PLTGOT is the value that data-relative addresses are relative to for that object. We call this the "gp". */ Elf_W(Dyn) *dyn = (Elf_W(Dyn) *)(p_dynamic->p_vaddr + load_base); diff --git a/src/dwarf/Gfind_unwind_table.c b/src/dwarf/Gfind_unwind_table.c index 4942b34f..ad9b4e9a 100644 --- a/src/dwarf/Gfind_unwind_table.c +++ b/src/dwarf/Gfind_unwind_table.c @@ -50,7 +50,7 @@ dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, unw_accessors_t *a; Elf_W(Ehdr) *ehdr; #if UNW_TARGET_ARM - const Elf_W(Phdr) *parm_exidx = NULL; + const Elf_W(Phdr) *param_exidx = NULL; #endif int i, ret, found = 0; @@ -92,7 +92,7 @@ dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, #if UNW_TARGET_ARM case PT_ARM_EXIDX: - parm_exidx = phdr + i; + param_exidx = phdr + i; break; #endif @@ -112,7 +112,7 @@ dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, { if (pdyn) { - /* For dynamicly linked executables and shared libraries, + /* For dynamically linked executables and shared libraries, DT_PLTGOT is the value that data-relative addresses are relative to for that object. We call this the "gp". */ Elf_W(Dyn) *dyn = (Elf_W(Dyn) *)(pdyn->p_offset @@ -212,14 +212,14 @@ dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, } #if UNW_TARGET_ARM - if (parm_exidx) + if (param_exidx) { edi->di_arm.format = UNW_INFO_FORMAT_ARM_EXIDX; edi->di_arm.start_ip = start_ip; edi->di_arm.end_ip = end_ip; edi->di_arm.u.rti.name_ptr = to_unw_word (path); - edi->di_arm.u.rti.table_data = load_base + parm_exidx->p_vaddr; - edi->di_arm.u.rti.table_len = parm_exidx->p_memsz; + edi->di_arm.u.rti.table_data = load_base + param_exidx->p_vaddr; + edi->di_arm.u.rti.table_len = param_exidx->p_memsz; found = 1; } #endif diff --git a/src/elfxx.c b/src/elfxx.c index 321cfb97..2f9d1593 100644 --- a/src/elfxx.c +++ b/src/elfxx.c @@ -165,7 +165,7 @@ elf_w (get_load_offset) (struct elf_image *ei, unsigned long segbase, Elf_W (Ehdr) *ehdr; Elf_W (Phdr) *phdr; int i; - // mapoff is obtained from mmap informations, so is always aligned on a page size. + // mapoff is obtained from mmap information, so it is always aligned on a page size. // PT_LOAD program headers p_offset however is not guaranteed to be aligned on a // page size, ld.lld generate libraries where this is not the case. So we must // make sure we compare both values with the same alignment. diff --git a/src/ia64/Gscript.c b/src/ia64/Gscript.c index ea5ac15f..1af6a855 100644 --- a/src/ia64/Gscript.c +++ b/src/ia64/Gscript.c @@ -287,7 +287,7 @@ compile_reg (struct ia64_state_record *sr, int i, struct ia64_reg_info *r, { case IA64_WHERE_FR: /* Note: There is no need to handle NaT-bit info here - (indepent of is_preserved_gr), because for floating-point + (independent of is_preserved_gr), because for floating-point NaTs are represented as NaTVal, so the NaT-info never needs to be consulated. */ if (rval >= 2 && rval <= 5) diff --git a/src/ia64/Gtables.c b/src/ia64/Gtables.c index f5e8f2d8..e6ac5197 100644 --- a/src/ia64/Gtables.c +++ b/src/ia64/Gtables.c @@ -531,7 +531,7 @@ callback (struct dl_phdr_info *info, size_t size, void *ptr) if (p_dynamic) { - /* For dynamicly linked executables and shared libraries, + /* For dynamically linked executables and shared libraries, DT_PLTGOT is the gp value for that object. */ Elf64_Dyn *dyn = (Elf64_Dyn *)(p_dynamic->p_vaddr + load_base); for (; dyn->d_tag != DT_NULL; ++dyn) diff --git a/src/ppc32/init.h b/src/ppc32/init.h index 87a69b14..17650d7a 100644 --- a/src/ppc32/init.h +++ b/src/ppc32/init.h @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -/* Here is the "common" init, for remote and local debuging" */ +/* Here is the "common" init, for remote and local debugging" */ static inline int common_init_ppc32 (struct cursor *c, unsigned use_prev_instr) diff --git a/src/tilegx/Gstep.c b/src/tilegx/Gstep.c index c748dbc5..b4456897 100644 --- a/src/tilegx/Gstep.c +++ b/src/tilegx/Gstep.c @@ -35,7 +35,7 @@ unw_step (unw_cursor_t *cursor) Debug (1, "(cursor=%p, ip=0x%016lx, sp=0x%016lx)\n", c, c->dwarf.ip, c->dwarf.cfa); - /* Special handling the singal frame. */ + /* Special handling the signal frame. */ if (unw_is_signal_frame (cursor) > 0) return tilegx_handle_signal_frame (cursor); diff --git a/src/x86_64/Gstash_frame.c b/src/x86_64/Gstash_frame.c index 2a44f873..d8f086e9 100644 --- a/src/x86_64/Gstash_frame.c +++ b/src/x86_64/Gstash_frame.c @@ -45,7 +45,7 @@ tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs) rs->reg.where[RBP] == DWARF_WHERE_EXPR) { /* Check for GCC generated alignment frame for rsp. A simple * def_cfa_expr that loads a constant offset from rbp, where the - * addres of the rip was pushed on the stack */ + * address of the rip was pushed on the stack */ unw_word_t cfa_addr = rs->reg.val[DWARF_CFA_REG_COLUMN]; unw_word_t rbp_addr = rs->reg.val[RBP]; unw_word_t cfa_offset; |