esp-idf/tools/idf_monitor_base
Ivan Grokhotkov 98d1f7de4b
tools: fix idf_monitor.py not working on macOS for Linux target
Since the introduction of PCAddressMatcher, the executable produced
by the build system is passed to elftools.elf.elffile.ELFFile.
However on macOS, native executables are not ELF files, so the
ELFFile class raises a rather unhelpful AssertionError exception.
Given that the rest of the idf_monitor.py doesn't have assumptions
that the "elf_file" argument is an ELF file (rather than just an
executable), check if the file is a real ELF file inside
PCAddressMatcher.
2023-01-13 08:14:55 +01:00
..
__init__.py
ansi_color_converter.py
argument_parser.py
chip_specific_config.py
console_parser.py
console_reader.py
constants.py
coredump.py
exceptions.py
gdbhelper.py
line_matcher.py
logger.py
output_helpers.py
pc_address_matcher.py tools: fix idf_monitor.py not working on macOS for Linux target 2023-01-13 08:14:55 +01:00
serial_handler.py
serial_reader.py
stoppable_thread.py
web_socket_client.py