Skip to content

Commit

Permalink
Merge branch 'docs/update_cn_trans_fatal_errors' into 'fix/esp_system…
Browse files Browse the repository at this point in the history
…_requires_esp_gdbstub'

docs: update cn trans fatal-errors

See merge request espressif/esp-idf!29419
  • Loading branch information
esp-momo committed Mar 6, 2024
2 parents 7444890 + 3dc5bfd commit c42b839
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/api-guides/fatal-errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Subsequent behavior of the panic handler can be set using :ref:`CONFIG_ESP_SYSTE

.. note::

``CONFIG_ESP_SYSTEM_PANIC_GDBSTUB`` choice in the configuration option :ref:`CONFIG_ESP_SYSTEM_PANIC` is only available when the component ``esp_gdbstub`` is included in the build.
The ``CONFIG_ESP_SYSTEM_PANIC_GDBSTUB`` choice in the configuration option :ref:`CONFIG_ESP_SYSTEM_PANIC` is only available when the component ``esp_gdbstub`` is included in the build.

The behavior of the panic handler is affected by three other configuration options.

Expand Down
4 changes: 4 additions & 0 deletions docs/zh_CN/api-guides/fatal-errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@

启动 GDB 服务器,通过控制台 UART 接口与 GDB 进行通信。该选项只提供只读调试或者事后调试,详细信息请参阅 `GDB Stub`_。

.. note::

仅当构建中包含组件 ``esp_gdbstub`` 时,配置选项 :ref:`CONFIG_ESP_SYSTEM_PANIC` 中的 ``CONFIG_ESP_SYSTEM_PANIC_GDBSTUB`` 选项可用。

紧急处理程序的行为还受到另外两个配置项的影响:

- 如果使能了 :ref:`CONFIG_ESP_DEBUG_OCDAWARE` (默认),紧急处理程序会检测 {IDF_TARGET_NAME} 是否已经连接 JTAG 调试器。如果检测成功,程序会暂停运行,并将控制权交给调试器。在这种情况下,寄存器和回溯不会被打印到控制台,并且也不会使用 GDB Stub 和 Core Dump 的功能。
Expand Down

0 comments on commit c42b839

Please sign in to comment.