set args # Set program arguments show args # Show program arguments run # Run the program run < file # Run with input from file set follow-exec-mode new/sam # Set debugger response to exec set write # Set write into executables set write off # Unset write int oexecutables continue # Continue running until break finish # Exec until current frame ends source FILE # Read commands from script file shell [cmd] # Run cmd in a shell display /5i $eip # Display $eip at execution end undisplay <expr #> # Undisplay expression number info functions # List all the functions info variables # List all the variables info registers # List most common registers info all-registers # List all registers info display # List of displayed expressions backtrace # Backtrace of all stack frames where # Same as backtrace set disassembly-flavor intel # Disassembly style to intel/att define hook-[cmd] # Action before command define hooopost-[cmd] # Action after command define hook-stop # Action when execution stops