From 1ce2c81ea9a9d8e26ee8a6c49001127470b47c40 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Mon, 13 May 2024 13:54:53 +0200 Subject: [PATCH] change(gdbinit): set remote timeout for the gdb connection --- tools/idf_py_actions/debug_ext.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/idf_py_actions/debug_ext.py b/tools/idf_py_actions/debug_ext.py index dd58055593..e537d0901f 100644 --- a/tools/idf_py_actions/debug_ext.py +++ b/tools/idf_py_actions/debug_ext.py @@ -11,12 +11,17 @@ import threading import time from textwrap import indent from threading import Thread -from typing import Any, Dict, List, Optional +from typing import Any +from typing import Dict +from typing import List +from typing import Optional from click.core import Context -from idf_py_actions.constants import OPENOCD_TAGET_CONFIG, OPENOCD_TAGET_CONFIG_DEFAULT +from idf_py_actions.constants import OPENOCD_TAGET_CONFIG +from idf_py_actions.constants import OPENOCD_TAGET_CONFIG_DEFAULT from idf_py_actions.errors import FatalError -from idf_py_actions.tools import PropertyDict, ensure_build_directory +from idf_py_actions.tools import ensure_build_directory +from idf_py_actions.tools import PropertyDict PYTHON = sys.executable ESP_ROM_INFO_FILE = 'roms.json' @@ -47,6 +52,7 @@ file {app_elf} ''' GDBINIT_CONNECT = ''' # Connect to the default openocd-esp port and break on app_main() +set remotetimeout 10 target remote :3333 monitor reset halt flushregs