mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 12:55:46 +01:00
handle windows filenames (#1307)
This commit is contained in:
parent
4988349677
commit
c680b437f5
@ -205,7 +205,7 @@ def process_stacktrace(config, line, backtrace_state):
|
|||||||
# ESP8266 Exception type
|
# ESP8266 Exception type
|
||||||
match = re.match(STACKTRACE_ESP8266_EXCEPTION_TYPE_RE, line)
|
match = re.match(STACKTRACE_ESP8266_EXCEPTION_TYPE_RE, line)
|
||||||
if match is not None:
|
if match is not None:
|
||||||
code = match.group(1)
|
code = int(match.group(1))
|
||||||
_LOGGER.warning("Exception type: %s", ESP8266_EXCEPTION_CODES.get(code, 'unknown'))
|
_LOGGER.warning("Exception type: %s", ESP8266_EXCEPTION_CODES.get(code, 'unknown'))
|
||||||
|
|
||||||
# ESP8266 PC/EXCVADDR
|
# ESP8266 PC/EXCVADDR
|
||||||
@ -273,4 +273,9 @@ class IDEData:
|
|||||||
if cc_path is None:
|
if cc_path is None:
|
||||||
return None
|
return None
|
||||||
# replace gcc at end with addr2line
|
# replace gcc at end with addr2line
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
if cc_path.endswith('.exe'):
|
||||||
|
return cc_path[:-7] + 'addr2line.exe'
|
||||||
|
|
||||||
return cc_path[:-3] + 'addr2line'
|
return cc_path[:-3] + 'addr2line'
|
||||||
|
Loading…
Reference in New Issue
Block a user