Skip to content

Commit

Permalink
Merge branch 'bugfix/modified_elf_exception' into 'master'
Browse files Browse the repository at this point in the history
fix: Catch exception when the ELF file is modified

Closes IDFGH-13347

See merge request espressif/esp-idf-panic-decoder!9
  • Loading branch information
peterdragun committed Aug 12, 2024
2 parents 1ca1b96 + 112cf24 commit f550ed7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions esp_idf_panic_decoder/pc_address_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ def lookup_pc_address(self, pc_addr: str, is_rom: bool = False) -> Optional[str]
return decoded if not is_rom else decoded.replace('at ??:?', 'in ROM')
except OSError as err:
red_print(f'{" ".join(cmd)}: {err}')
except subprocess.CalledProcessError as err:
red_print(f'{" ".join(cmd)}: {err}')
red_print('ELF file is missing or has changed, the build folder was probably modified.')
return None

0 comments on commit f550ed7

Please sign in to comment.