Merge branch 'contrib/github_pr_11535' into 'master'

Replace deprecated flushregs alias with full gdb command (GitHub PR)

Closes IDFGH-10272

See merge request espressif/esp-idf!24752
This commit is contained in:
Ivan Grokhotkov
2023-07-28 22:40:22 +08:00
12 changed files with 14 additions and 14 deletions

View File

@@ -112,7 +112,7 @@ On startup, debugger is issuing sequence of commands to reset the chip and halt
* ``set remote hardware-watchpoint-limit 2`` — Restrict GDB to using two hardware watchpoints supported by the chip, 2 for {IDF_TARGET_NAME}. For more information see https://sourceware.org/gdb/onlinedocs/gdb/Remote-Configuration.html.
* ``mon reset halt`` — reset the chip and keep the CPUs halted
* ``flushregs`` — monitor (``mon``) command can not inform GDB that the target state has changed. GDB will assume that whatever stack the target had before ``mon reset halt`` will still be valid. In fact, after reset the target state will change, and executing ``flushregs`` is a way to force GDB to get new state from the target.
* ``maintenance flush register-cache`` — monitor (``mon``) command can not inform GDB that the target state has changed. GDB will assume that whatever stack the target had before ``mon reset halt`` will still be valid. In fact, after reset the target state will change, and executing ``maintenance flush register-cache`` is a way to force GDB to get new state from the target.
* ``thb app_main`` — insert a temporary hardware breakpoint at ``app_main``, put here another function name if required
* ``c`` — resume the program. It will then stop at breakpoint inserted at ``app_main``.

View File

@@ -77,7 +77,7 @@ After installation is complete, follow these steps to configure the debugging se
::
mon reset halt
flushregs
maintenance flush register-cache
set remote hardware-watchpoint-limit 2
.. note::
@@ -143,7 +143,7 @@ Command Line
target remote :3333
set remote hardware-watchpoint-limit 2
mon reset halt
flushregs
maintenance flush register-cache
thb app_main
c