mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-01 06:41:51 -04:00
tests: fix spelling typos in error diagnostics and comments
Cannnot -> Cannot decriptors -> descriptors experssions -> expressions explit -> explicit falg -> flag irrelevent -> irrelevant mininum -> minimum outselves -> ourselves proces -> process versio -> version Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
committed by
Mark Wielaard
parent
107b351d49
commit
29d3b65896
@@ -1,3 +1,14 @@
|
||||
2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* dwarf-die-addr-die.c (main): Fix spelling typo in error diagnostics.
|
||||
* run-lfs-symbols.sh: Likewise.
|
||||
* elfstrmerge.c (main): Fix spelling typos in comments.
|
||||
* dwfl-bug-fd-leak.c: Likewise.
|
||||
* run-readelf-line.sh: Likewise.
|
||||
* run-stack-demangled-test.sh: Likewise.
|
||||
* sectiondump.c (main): Likewise.
|
||||
* varlocs.c (handle_die): Likewise.
|
||||
|
||||
2020-12-11 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* configure.ac: Remove.
|
||||
|
||||
@@ -164,7 +164,7 @@ main (int argc, char *argv[])
|
||||
int fd = open (name, O_RDONLY);
|
||||
if (fd < 0)
|
||||
{
|
||||
printf ("Cannnot open '%s': %s\n", name, strerror (errno));
|
||||
printf ("Cannot open '%s': %s\n", name, strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Test program for libdwfl file decriptors leakage.
|
||||
/* Test program for libdwfl file descriptors leakage.
|
||||
Copyright (C) 2007, 2008 Red Hat, Inc.
|
||||
This file is part of elfutils.
|
||||
|
||||
|
||||
+2
-2
@@ -332,7 +332,7 @@ main (int argc, char **argv)
|
||||
if (unlikely (secndx == 0 || secndx == shdrstrndx || secndx >= shdrnum))
|
||||
{
|
||||
/* Don't use fail... too specialized messages. Call release
|
||||
outselves and then error. Ignores midx if widx is
|
||||
ourselves and then error. Ignores midx if widx is
|
||||
zero. */
|
||||
release ();
|
||||
if (widx == 0)
|
||||
@@ -543,7 +543,7 @@ main (int argc, char **argv)
|
||||
{
|
||||
new_data_buf (newdata);
|
||||
/* A section group contains Elf32_Words. The first
|
||||
word is a falg value, the rest of the words are
|
||||
word is a flag value, the rest of the words are
|
||||
indexes of the sections belonging to the group. */
|
||||
Elf32_Word *group = (Elf32_Word *) data->d_buf;
|
||||
Elf32_Word *newgroup = (Elf32_Word *) newdata->d_buf;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
. $srcdir/test-subr.sh
|
||||
|
||||
if ! grep -q -F '#define _FILE_OFFSET_BITS' ${abs_top_builddir}/config.h; then
|
||||
echo "LFS testing is irrelevent on this system"
|
||||
echo "LFS testing is irrelevant on this system"
|
||||
exit 77
|
||||
fi
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ DWARF section [30] '.debug_line' at offset 0x15f6:
|
||||
|
||||
EOF
|
||||
|
||||
# A .debug_line table with mininum instruction length > 1.
|
||||
# A .debug_line table with minimum instruction length > 1.
|
||||
#
|
||||
# = hello.c
|
||||
# #include <stdio.h>
|
||||
|
||||
@@ -24,7 +24,7 @@ fi
|
||||
|
||||
# See run-stack-d-test.sh and run-stack-i-test.sh
|
||||
# Same tests, now with demangler support, no -r, and without -d.
|
||||
# Only change in output is an explit fu(int) instead of _Z2fui.
|
||||
# Only change in output is an explicit fu(int) instead of _Z2fui.
|
||||
|
||||
testfiles testfiledwarfinlines testfiledwarfinlines.core
|
||||
|
||||
|
||||
+3
-3
@@ -49,7 +49,7 @@ main (int argc, char *argv[])
|
||||
if (fd == -1)
|
||||
error (EXIT_FAILURE, errno, "cannot open input file `%s'", argv[1]);
|
||||
|
||||
/* Set the library versio we expect. */
|
||||
/* Set the library version we expect. */
|
||||
elf_version (EV_CURRENT);
|
||||
|
||||
/* Create the ELF descriptor. */
|
||||
@@ -58,7 +58,7 @@ main (int argc, char *argv[])
|
||||
error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s",
|
||||
elf_errmsg (0));
|
||||
|
||||
/* Now proces all the sections mentioned in the rest of the command line. */
|
||||
/* Now process all the sections mentioned in the rest of the command line. */
|
||||
for (cnt = 2; cnt < argc; ++cnt)
|
||||
if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
|
||||
/* When we encounter an error stop immediately. */
|
||||
@@ -116,7 +116,7 @@ handle_section (Elf *elf, Elf_Scn *scn)
|
||||
if (data == NULL)
|
||||
return 1;
|
||||
|
||||
/* Now proces the different section types accordingly. */
|
||||
/* Now process the different section types accordingly. */
|
||||
switch (shdr->sh_type)
|
||||
{
|
||||
case SHT_SYMTAB:
|
||||
|
||||
+1
-1
@@ -1011,7 +1011,7 @@ handle_die (Dwarf_Die *die, int depth, bool outer_has_frame_base,
|
||||
arg.entrypc = die_entrypc;
|
||||
|
||||
/* Whether this or the any outer DIE has a frame base. Used as
|
||||
sanity check when printing experssions that use DW_OP_fbreg. */
|
||||
sanity check when printing expressions that use DW_OP_fbreg. */
|
||||
bool die_has_frame_base = dwarf_hasattr (die, DW_AT_frame_base);
|
||||
die_has_frame_base |= outer_has_frame_base;
|
||||
has_frame_base = die_has_frame_base;
|
||||
|
||||
Reference in New Issue
Block a user