]> granicus.if.org Git - esp-idf/commitdiff
docs: Adds watchpoints limit configuration to example gdbinit
authorAlexey Gerenkov <alexey@espressif.com>
Wed, 17 Oct 2018 10:11:34 +0000 (13:11 +0300)
committerbot <bot@espressif.com>
Thu, 20 Dec 2018 06:09:23 +0000 (06:09 +0000)
Closes https://github.com/espressif/esp-idf/issues/2335

docs/_static/hw-debugging-startup-tab.jpg
docs/en/api-guides/jtag-debugging/tips-and-quirks.rst
docs/en/api-guides/jtag-debugging/using-debugger.rst

index bad2d593834ee650802ab869fc7c4d0e731a25f6..4b128f2a2b1d4fe02b4b053b7fb8c58f80c665c6 100644 (file)
Binary files a/docs/_static/hw-debugging-startup-tab.jpg and b/docs/_static/hw-debugging-startup-tab.jpg differ
index 78d839a0bc6fa5718cd196a65b7b8b3dd280a101..1c7111742e53198cccb85d8df05e238fa282dc58 100644 (file)
@@ -99,6 +99,7 @@ What is the meaning of debugger's startup commands?
 
 On startup, debugger is issuing sequence of commands to reset the chip and halt it at specific line of code. This sequence (shown below) is user defined to pick up at most convenient / appropriate line and start debugging. 
 
+* ``set remote hardware-watchpoint-limit 2`` — Restrict GDB to using two hardware watchpoints supported by ESP32. 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.
 * ``thb app_main`` — insert a temporary hardware breakpoint at ``app_main``, put here another function name if required
index 2c8e5d7a066133ab9fc5552eec5fac36cdd77f55..2492867a62917b2a8ce3a1c9bea5c22b8e2be7d3 100644 (file)
@@ -48,7 +48,13 @@ Once installation is complete, configure debugging session following steps below
 
         Configuration of GDB Hardware Debugging - Debugger tab
 
-8.  The last tab to that requires changing of default configuration is "Startup". Under "Initialization Commands" uncheck "Reset and Delay (seconds)" and "Halt"". Then, in entry field below, type ``mon reset halt`` and ``flushregs`` (in two separate lines).
+8.  The last tab to that requires changing of default configuration is "Startup". Under "Initialization Commands" uncheck "Reset and Delay (seconds)" and "Halt"". Then, in entry field below, enter the following lines:
+
+    ::
+
+        mon reset halt
+        flushregs
+        set remote hardware-watchpoint-limit 2
 
     .. note::
         If you want to update image in the flash automatically before starting new debug session add the following lines of commands at the beginning of "Initialization Commands" textbox::
@@ -56,7 +62,6 @@ Once installation is complete, configure debugging session following steps below
             mon reset halt
             mon program_esp32 ${workspace_loc:blink/build/blink.bin} 0x10000 verify
 
-
     For description of ``program_esp32`` command see :ref:`jtag-upload-app-debug`.
 
 9.  Under "Load Image and Symbols" uncheck "Load image" option. 
@@ -112,6 +117,7 @@ Command Line
     ::
 
         target remote :3333
+        set remote hardware-watchpoint-limit 2
         mon reset halt
         flushregs
         thb app_main