meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gdb [2022/03/25 17:38] – [gdbcommands file] niziakgdb [2025/05/28 07:16] (current) – [stepping] niziak
Line 50: Line 50:
   * cond[ition] 1 <expr> - stop at breakpoint 1 only if <expr> is true   * cond[ition] 1 <expr> - stop at breakpoint 1 only if <expr> is true
   * cond 1 - Remove condition from breakpoint 1   * cond 1 - Remove condition from breakpoint 1
 +
 +Add to C code to catch timing critical issues:
 +<code c>
 +if (p_queue->p_cb->locked) {
 +  __BKPT(8);
 +}
 +</code>
  
 ==== stepping ==== ==== stepping ====
-  * s [tep] - step to next **source** line 
-  * c [ontinue] <num_to_ignore> 
-  * n [ext] - step (do not enter to subroutines) 
-  * fin [ish] - execute until stack frame returns 
-  * u [ntil] <line number> - execute to line (to avoid loops) 
  
 +  * **s** [tep] - step to next **source** line
 +  * **c** [ontinue] <num_to_ignore>
 +  * **n** [ext] - step (do not enter to subroutines)
 +  * **fin** [ish] - execute until stack frame returns
 +  * **u** [ntil] <line number> - execute to line (to avoid loops)
 +  
 +Skip current command:
 +<code>
 +tbreak +1
 +jump +1
 +</code>
 ==== infos ==== ==== infos ====
   * show debug-file-directory   * show debug-file-directory