Skip to content

Commit e7ba614

Browse files
committed
Merge branch 'set_gdb_remotetimeout_v5.3' into 'release/v5.3'
tools(gdbinit): set remote timeout for the gdb connection (v5.3) See merge request espressif/esp-idf!30804
2 parents dbf7571 + b400a8c commit e7ba614

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

tools/idf_py_actions/debug_ext.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,26 @@
1111
import time
1212
from textwrap import indent
1313
from threading import Thread
14-
from typing import Any, Dict, List, Optional, Union
14+
from typing import Any
15+
from typing import Dict
16+
from typing import List
17+
from typing import Optional
18+
from typing import Union
1519

1620
from click import INT
1721
from click.core import Context
1822
from esp_coredump import CoreDump
19-
from idf_py_actions.constants import OPENOCD_TAGET_CONFIG, OPENOCD_TAGET_CONFIG_DEFAULT
23+
from idf_py_actions.constants import OPENOCD_TAGET_CONFIG
24+
from idf_py_actions.constants import OPENOCD_TAGET_CONFIG_DEFAULT
2025
from idf_py_actions.errors import FatalError
21-
from idf_py_actions.serial_ext import BAUD_RATE, PORT
22-
from idf_py_actions.tools import (PropertyDict, ensure_build_directory, generate_hints, get_default_serial_port,
23-
get_sdkconfig_value, yellow_print)
26+
from idf_py_actions.serial_ext import BAUD_RATE
27+
from idf_py_actions.serial_ext import PORT
28+
from idf_py_actions.tools import ensure_build_directory
29+
from idf_py_actions.tools import generate_hints
30+
from idf_py_actions.tools import get_default_serial_port
31+
from idf_py_actions.tools import get_sdkconfig_value
32+
from idf_py_actions.tools import PropertyDict
33+
from idf_py_actions.tools import yellow_print
2434

2535
PYTHON = sys.executable
2636
ESP_ROM_INFO_FILE = 'roms.json'
@@ -51,6 +61,7 @@
5161
'''
5262
GDBINIT_CONNECT = '''
5363
# Connect to the default openocd-esp port and break on app_main()
64+
set remotetimeout 10
5465
target remote :3333
5566
monitor reset halt
5667
maintenance flush register-cache

0 commit comments

Comments
 (0)