From ce2c90fcce3403b7cea1442d01e4027aca4a002b Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Mon, 13 May 2024 13:49:35 +0200 Subject: [PATCH] change(gdbinit): set remote timeout for the gdb connection --- tools/idf_py_actions/debug_ext.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tools/idf_py_actions/debug_ext.py b/tools/idf_py_actions/debug_ext.py index 7501e07971..9f283d04a7 100644 --- a/tools/idf_py_actions/debug_ext.py +++ b/tools/idf_py_actions/debug_ext.py @@ -11,16 +11,25 @@ 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 import INT from click.core import Context from esp_coredump import CoreDump -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.serial_ext import BAUD_RATE, PORT -from idf_py_actions.tools import (PropertyDict, ensure_build_directory, generate_hints, get_default_serial_port, - get_sdkconfig_value, yellow_print) +from idf_py_actions.serial_ext import BAUD_RATE +from idf_py_actions.serial_ext import PORT +from idf_py_actions.tools import ensure_build_directory +from idf_py_actions.tools import generate_hints +from idf_py_actions.tools import get_default_serial_port +from idf_py_actions.tools import get_sdkconfig_value +from idf_py_actions.tools import PropertyDict +from idf_py_actions.tools import yellow_print PYTHON = sys.executable ESP_ROM_INFO_FILE = 'roms.json' @@ -51,6 +60,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