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 Moved coredump utils out of idf_monitor 2021-06-28 13:56:39 +02:00
ansi_color_converter.py idf.py: Add automated hints on how to resolve errors 2022-07-04 08:15:23 +00:00
argument_parser.py idf.py: Add automated hints on how to resolve errors 2022-07-04 08:15:23 +00:00
chip_specific_config.py all: Apply new version logic (major * 100 + minor) 2022-11-03 08:36:23 +00:00
console_parser.py idf.py: add linux target support for idf.py flash and idf.py monitor 2021-10-18 11:50:50 +08:00
console_reader.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
constants.py Tools: IDF Monitor: Determine possible instruction addresses based on ELF segments 2023-01-03 13:22:26 +01:00
coredump.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
exceptions.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
gdbhelper.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
line_matcher.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
logger.py Tools: IDF Monitor: Determine possible instruction addresses based on ELF segments 2023-01-03 13:22:26 +01:00
output_helpers.py idf.py: Add automated hints on how to resolve errors 2022-07-04 08:15:23 +00:00
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 Tools: IDF Monitor: Determine possible instruction addresses based on ELF segments 2023-01-03 13:22:26 +01:00
serial_reader.py Tools: Add missing DTR/RTS set before serial port open on reconnect when --no-reset is used 2022-05-19 08:24:50 +02:00
stoppable_thread.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
web_socket_client.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00