diff options
| author | Camille Mougey <commial@gmail.com> | 2018-12-23 23:23:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-23 23:23:30 +0100 |
| commit | 439eacecd16587bf0df8fd097b8c13677326b9f3 (patch) | |
| tree | e19e9820bb8355730ae9bd0c706e414e39c895ef /example/jitter | |
| parent | 011e1e209b3d00afe3c8e65000209a568c5eb791 (diff) | |
| parent | 814ccf50314852d12168ad5b8a4a875a86bc6e3d (diff) | |
| download | miasm-439eacecd16587bf0df8fd097b8c13677326b9f3.tar.gz miasm-439eacecd16587bf0df8fd097b8c13677326b9f3.zip | |
Merge pull request #908 from p-l-/codespell
Fix typos & add codespell
Diffstat (limited to 'example/jitter')
| -rwxr-xr-x | example/jitter/arm_sc.py | 8 | ||||
| -rwxr-xr-x | example/jitter/example_types.py | 4 | ||||
| -rwxr-xr-x | example/jitter/mips32.py | 2 | ||||
| -rwxr-xr-x | example/jitter/msp430.py | 2 | ||||
| -rw-r--r-- | example/jitter/run_with_linuxenv.py | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/example/jitter/arm_sc.py b/example/jitter/arm_sc.py index 6644a440..7720ad68 100755 --- a/example/jitter/arm_sc.py +++ b/example/jitter/arm_sc.py @@ -9,18 +9,18 @@ from pdb import pm parser = Sandbox_Linux_arml_str.parser(description="""Sandbox an elf binary with arm engine (ex: jit_arm_sc.py example/demo_arm_l.bin)""") parser.add_argument("filename", help="string Filename") -parser.add_argument("endianess", help="endianness [b/l]") +parser.add_argument("endianness", help="endianness [b/l]") parser.add_argument('-v', "--verbose", help="verbose mode", action="store_true") options = parser.parse_args() -if options.endianess == 'b': +if options.endianness == 'b': sandbox = Sandbox_Linux_armb_str -elif options.endianess == 'l': +elif options.endianness == 'l': sandbox = Sandbox_Linux_arml_str else: - raise ValueError("Bad endianess!") + raise ValueError("Bad endianness!") sb = sandbox(options.filename, options, globals()) diff --git a/example/jitter/example_types.py b/example/jitter/example_types.py index 7ed964c2..bcf9bf70 100755 --- a/example/jitter/example_types.py +++ b/example/jitter/example_types.py @@ -10,7 +10,7 @@ from miasm2.core.types import MemStruct, Self, Void, Str, Array, Ptr, \ Num, Array, set_allocator from miasm2.os_dep.common import heap -# Instanciate a heap +# Instantiate a heap my_heap = heap() # And set it as the default memory allocator, to avoid manual allocation and # explicit address passing to the MemType subclasses (like MemStruct) @@ -129,7 +129,7 @@ class DataArray(MemStruct): fields = [ ("val1", Num("B")), ("val2", Num("B")), - # Ptr can also be instanciated with a Type instance as an argument, the + # Ptr can also be instantiated with a Type instance as an argument, the # corresponding Memtype will be returned when dereferencing # Here, data_array.array.deref will allow to access an Array ("arrayptr", Ptr("<I", Array(Num("B"), 16))), diff --git a/example/jitter/mips32.py b/example/jitter/mips32.py index 31ab03c8..70181a2a 100755 --- a/example/jitter/mips32.py +++ b/example/jitter/mips32.py @@ -18,7 +18,7 @@ parser.add_argument("-j", "--jitter", help="Jitter engine (default is 'gcc')", default="gcc") parser.add_argument("-d", "--debugging", - help="Attach a CLI debugguer to the sandboxed programm", + help="Attach a CLI debugguer to the sandboxed program", action="store_true") parser.add_argument("binary", help="binary to run") diff --git a/example/jitter/msp430.py b/example/jitter/msp430.py index 2f9b8649..36e45421 100755 --- a/example/jitter/msp430.py +++ b/example/jitter/msp430.py @@ -18,7 +18,7 @@ parser.add_argument("-j", "--jitter", help="Jitter engine (default is 'gcc')", default="gcc") parser.add_argument("-d", "--debugging", - help="Attach a CLI debugguer to the sandboxed programm", + help="Attach a CLI debugguer to the sandboxed program", action="store_true") parser.add_argument("binary", help="binary to run") diff --git a/example/jitter/run_with_linuxenv.py b/example/jitter/run_with_linuxenv.py index c9abe699..f4900a96 100644 --- a/example/jitter/run_with_linuxenv.py +++ b/example/jitter/run_with_linuxenv.py @@ -31,9 +31,9 @@ if cont_target_tmp.executable.Ehdr.type in [elf_csts.ET_REL, elf_csts.ET_DYN]: elif cont_target_tmp.executable.Ehdr.type == elf_csts.ET_EXEC: elf_base_addr = 0 # Not relocatable else: - raise ValueError("Unsuported type %d" % cont_target_tmp.executable.Ehdr.type) + raise ValueError("Unsupported type %d" % cont_target_tmp.executable.Ehdr.type) -# Instanciate a jitter +# Instantiate a jitter machine = Machine(cont_target_tmp.arch) jitter = machine.jitter(args.jitter) jitter.init_stack() |