User Tools

Site Tools


wiki:gdb

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
wiki:gdb [2014/02/06 18:53]
bparmentier Add tags
wiki:gdb [2014/02/12 00:27] (current)
bparmentier Add arguments command
Line 4: Line 4:
 === Launch GDB in TUI mode === === Launch GDB in TUI mode ===
 <​code>​gdb -tui <​MyProgram></​code>​ <​code>​gdb -tui <​MyProgram></​code>​
 +
 +==== Commands ====
 +
 +=== Set a breakpoint at the given location (function name, line number, or address of an instruction) ===
 +<​code>​break <​location></​code>​
 +
 +=== Arguments for the debugged program ===
 +<​code>​set args <​arguments></​code>​
 +<​code>​show args</​code>​
  
 ==== TUI-specific commands ==== ==== TUI-specific commands ====
Line 14: Line 23:
 === Display the register window together with the source or assembly window === === Display the register window together with the source or assembly window ===
 <​code>​layout regs</​code>​ <​code>​layout regs</​code>​
- 
-=== Set a breakpoint at the given location (function name, line number, or address of an instruction) === 
-<​code>​break <​location></​code>​ 
  
 ==== Key bindings ==== ==== Key bindings ====
wiki/gdb.txt ยท Last modified: 2014/02/12 00:27 by bparmentier