mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 07:04:32 +02:00
Merge branch 'contrib/github_pr_9385' into 'master'
Tools: Avoid the crash of IDF Monitor when it is run without an ELF file Closes IDFGH-7859 See merge request espressif/esp-idf!19141
This commit is contained in:
@@ -234,6 +234,7 @@ class SerialMonitor(Monitor):
|
|||||||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: # type: ignore
|
def __exit__(self, exc_type, exc_val, exc_tb) -> None: # type: ignore
|
||||||
""" Use 'with self' to temporarily disable monitoring behaviour """
|
""" Use 'with self' to temporarily disable monitoring behaviour """
|
||||||
self.console_reader.start()
|
self.console_reader.start()
|
||||||
|
if self.elf_exists:
|
||||||
self.serial_reader.gdb_exit = self.gdb_helper.gdb_exit # write gdb_exit flag
|
self.serial_reader.gdb_exit = self.gdb_helper.gdb_exit # write gdb_exit flag
|
||||||
self.serial_reader.start()
|
self.serial_reader.start()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user