Gdb

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Created page with 'Useful GDB commands... {| | <code>bt</code> or <code>backtrace</code> || show a backtrace from the current location |- | <code>frame ''<frameno>''</code> || move to a different …')
 
m
Line 1: Line 1:
 
Useful GDB commands...
 
Useful GDB commands...
{|
+
{|class="wikitable"
 +
! Command !! Description
 +
|-
 
| <code>bt</code> or <code>backtrace</code> || show a backtrace from the current location
 
| <code>bt</code> or <code>backtrace</code> || show a backtrace from the current location
 
|-  
 
|-  
Line 15: Line 17:
 
| <code>info breakpoints</code> || list of breakpoints
 
| <code>info breakpoints</code> || list of breakpoints
 
|-
 
|-
| <code>break ''<file>'':''<lineno>'' || set a breakpoint
+
| <code>break ''<file>'':''<lineno>''</code> || set a breakpoint
 +
|-
 +
| <code>step</code> || step into the current line
 +
|-
 +
| <code>next</code> || step over the current line
 +
|-
 +
| <code>cont</code> || continue execution
 
|}
 
|}

Revision as of 11:41, 29 September 2014

Useful GDB commands...

Command Description
bt or backtrace show a backtrace from the current location
frame <frameno> move to a different stack frame
- -
info threads list of running threads
thread <threadno> switch to a different thread
- -
info breakpoints list of breakpoints
break <file>:<lineno> set a breakpoint
step step into the current line
next step over the current line
cont continue execution
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox