mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
Warn on a failing addr2line on the PlatformIO path too
This commit is contained in:
@@ -649,12 +649,11 @@ def _decode_pc(config, addr):
|
||||
try:
|
||||
translation = subprocess.check_output(command, close_fds=False).decode().strip()
|
||||
except Exception: # noqa: BLE001 # pylint: disable=broad-except
|
||||
if CORE.using_toolchain_arduino:
|
||||
# A present-but-failing addr2line (stale ELF, bad install) must
|
||||
# be visible, matching the missing-tool warning above
|
||||
_warn_decode_problem(
|
||||
"addr2line-failed", "Could not decode crash address %s", addr
|
||||
)
|
||||
# A present-but-failing addr2line (stale ELF, bad install) must be
|
||||
# visible on either toolchain, matching the missing-tool warning above
|
||||
_warn_decode_problem(
|
||||
"addr2line-failed", "Could not decode crash address %s", addr
|
||||
)
|
||||
_LOGGER.debug("Caught exception for command %s", command, exc_info=1)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user