Debugger Command Reference (GDB Mode)
!
Repeat a command in the command history.
^
Find, and optionally change a command in the command history.
#
Specify a comment.
advance (gdb mode only)
Run until the debuggee reaches a specific line number.
attach
Connect to a running process.
awatch (gdb mode only)
Set a watchpoint on a specified expression.
backtrace (gdb mode only)
Print a backtrace of stack frames.
break (gdb mode only)
Set a breakpoint at a specified location.
call
Call a function in the debuggee.
clear (gdb mode only)
Delete a breakpoint at the specified location.
commands (gdb mode only)
Create commands to be executed when the specified breakpoint is reached.
complete (gdb mode only)
List all the possible completions for the beginning of a command.
condition (gdb mode only)
Specify a condition for a breakpoint.
continue (gdb mode only)
Continue program execution.
core-file (gdb mode only)
Specify a core file as a target, or specify not to use a core file.
define (gdb mode only)
Create a user-defined command.
delete breakpoints (gdb mode only)
Delete all or a specific breakpoint.
detach
Detach the debugger from a running process.
directory (gdb mode only)
Add directories to the list of source directories.
disable
Disable one or more breakpoints.
disassemble (gdb mode only)
Disassemble and display machine instructions.
disconnect (gdb mode only)
Disconnect from all running processes and remove all breakpoints.
down
Move a number of frames down the stack and print them.
down-silently (gdb mode only)
Move a number of frames down the stack but do not print them.
echo (gdb mode only)
Print a string.
enable
Enable one or more breakpoints.
file (gdb mode only)
Load an executable file for debugging, or unload.
finish (gdb mode only)
Continue execution until the current function returns.
forward-search (gdb mode only)
Search forward in the source for a string or repeat last search.
frame (gdb mode only)
Show or change the current function scope.
handle (gdb mode only)
Set signal handling actions.
help
Display help for debugger commands.
idb directory (gdb mode only)
Add a directory to the list of source directories or reset the list.
idb freeze (gdb mode only)
Set the execution attribute of the specified threads to frozen.
idb info barrier (gdb mode only)
Shows information for existing barriers in an OpenMP* application.
idb info lock (gdb mode only)
Shows information for existing locks in an OpenMP* application.
idb info openmp thread tree (gdb mode only)
Display the threads in the process in a tree format.
idb info task (gdb mode only)
Display information for existing tasks in an OpenMP* application.
idb info taskwait (gdb mode only)
Display information for any existing taskwait.
idb info team (gdb mode only)
Display information for any existing team.
idb info thread (gdb mode only)
Show the specified threads in the process.
idb process (gdb mode only)
Show or specify a process.
idb reentrancy (gdb mode only)
Enable re-entrancy detection on a function.
idb session restore (gdb mode only)
Load a session file to restore a session's debug settings.
idb session save (gdb mode only)
Save a session's debug settings to a file.
idb set cilk-serialization (gdb mode only)
Enable or disable serial execution of parallel regions in Intel® Cilk™ Plus code.
idb set openmp-serialization (gdb mode only)
Enable or disable serial execution of parallel regions in an OpenMP* process.
idb sharing (gdb mode only)
Disable or enable data sharing event detection.
idb sharing event expand (gdb mode only)
Display detailed information for data sharing detection events.
idb sharing event list (gdb mode only)
Display a summary of all data sharing detection events.
idb sharing filter add file (gdb mode only)
Ignore data sharing events in the named file.
idb sharing filter add function (gdb mode only)
Ignore data sharing events in the named function.
idb sharing filter add range (gdb mode only)
Ignore data sharing events in an address range.
idb sharing filter add variable (gdb mode only)
Ignore data sharing events on the specified variable.
idb sharing filter delete (gdb mode only)
Delete data sharing detection filters.
idb sharing filter disable (gdb mode only)
Disable data sharing detection filters.
idb sharing filter enable (gdb mode only)
Enable data sharing detection filters.
idb sharing filter list (gdb mode only)
List all data sharing detection filters.
idb sharing filter toggle (gdb mode only)
Toggle data sharing detection filters.
idb sharing reset (gdb mode only)
Clear the data sharing event list.
idb sharing status (gdb mode only)
Show if data sharing detection is on or off.
idb sharing stop (gdb mode only)
Stop or continue the debuggee when a data sharing event occurs.
idb show cilk-serialization (gdb mode only)
Show if serialization of parallel regions in Intel® Cilk™ Plus code is enabled.
idb show openmp-serialization (gdb mode only)
Show if serialization of parallel regions in an OpenMP* process is enabled.
idb stopping threads (gdb mode only)
Specify the threads that stop when a breakpoint is hit.
idb synchronize (gdb mode only)
Set a thread syncpoint at a location you specify.
idb target threads (gdb mode only)
Specify the threads that subsequent mover commands apply to.
idb thaw (gdb mode only)
Set the execution attribute of the specified threads to thawed.
idb uninterrupt (gdb mode only)
Set the execution attribute of the specified threads to uninterrupt.
if
Conditionalize command execution.
ignore (gdb mode only)
Set the ignore count of the specified breakpoint or watchpoint to the specified value.
info args (gdb mode only)
Print the arguments of the current frame.
info breakpoints (gdb mode only)
Print information about one or more breakpoints.
info files (gdb mode only)
Print the names of the files in the debuggee.
info functions (gdb mode only)
Print names and types of functions.
info handle (gdb mode only)
Print available signals and signal setting information.
info line (gdb mode only)
Print start and end address of specified source line.
info locals (gdb mode only)
Print local variables of the selected function.
info program (gdb mode only)
Print information about the debuggee.
info registers (gdb mode only)
Print registers and their contents.
info share (gdb mode only)
Print the names of shared libraries.
info sharedlibrary (gdb mode only)
Print the names of shared libraries.
info signals (gdb mode only)
Print signal setting information.
info source (gdb mode only)
Print information about the current source file.
info sources (gdb mode only)
Print names of all source files.
info stack (gdb mode only)
Print a backtrace of stack frames.
info target (gdb mode only)
Print the names of the files in the debuggee.
info threads (gdb mode only)
Print all threads.
info types (gdb mode only)
Print a description of types in the program.
info variables (gdb mode only)
Print names and types of all global variables.
info watchpoints (gdb mode only)
Print information about one or more watchpoints.
jump (gdb mode only)
Jump to the specified line number or address.
kill
Kill the current process.
list
Display lines of source code.
monitor (gdb mode only)
Reserved for future extensions. Sends a request to a target.
next
Step forward in source, over any function calls.
nexti
Step forward in assembler instructions, over any function calls.
output (gdb mode only)
Print the value of an expression.
path (gdb mode only)
Add specified directory to search path.
print
Print the value of an expression.
printf
Display a complex structure with formatting.
ptype (gdb mode only)
Print the type declaration of the specified type, or the last value in history.
pwd (gdb mode only)
Display the current working directory.
quit
Exit the debugger.
return (gdb mode only)
Remove frames from the call stack.
reverse-search (gdb mode only)
Search backward in the source for a string or repeat last search.
run
Run the debuggee program.
rwatch (gdb mode only)
Set a read watchpoint on the specified expression.
search (gdb mode only)
Search forward in the source for a string or repeat last search.
set args (gdb mode only)
Specify arguments for the debuggee program.
set confirm (gdb mode only)
Switch confirmation requests on or off.
set disassembly-flavor (gdb mode only)
Sets the debugger disassembly style.
set editing (gdb mode only)
Enable or disable Emacs*-like control characters.
set environment (gdb mode only)
Set an environment variable to a value.
set height (gdb mode only)
Set the height of the screen.
set history save
Switch command-line history on or off.
set history size
Specify the size of the command-line history.
set language (gdb mode only)
Set the source language.
set listsize (gdb mode only)
Set the default number of source lines for the list command to display.
set max-user-call-depth (gdb mode only)
Set a limitation on the maximum number of recursion levels a user-defined command may have.
set output-radix (gdb mode only)
Set the default numeric base for numeric output.
set print address (gdb mode only)
Set the debugger's default to either print or not print the value of a pointer as an address.
set print elements (gdb mode only)
Set a limit on the number of array elements to print.
set print repeats (gdb mode only)
Limit the number of consecutive, identical array elements the debugger prints.
set print static-members (gdb mode only)
Print static members when showing a C++ object.
set prompt (gdb mode only)
Set a new string for the debugger prompt.
set substitute-path (gdb mode only)
Set a substitution rule for finding source files.
set variable (gdb mode only)
Set a debugger variable to a value.
set width (gdb mode only)
Set the width of the screen.
shell (gdb mode only)
Execute a shell command.
show aggregated message
Print the specified aggregated messages.
show architecture (gdb mode only)
Show the current architecture.
show args (gdb mode only)
Show arguments and input and output redirections.
show commands (gdb mode only)
Print commands in history.
show convenience (gdb mode only)
Show a list of debugger variables and their values.
show directories (gdb mode only)
Show the list of source directories to search.
show disassembly-flavor (gdb mode only)
Shows the debugger disassembly style .
show editing (gdb mode only)
Show whether command line editing is on or off.
show environment (gdb mode only)
Show one or all environment variables.
show height (gdb mode only)
Show the height of the screen.
show language (gdb mode only)
Show the current source language.
show listsize (gdb mode only)
Show the default number of lines for the list command.
show max-user-call-depth (gdb mode only)
Show the maximum recursion level for user-defined commands.
show output-radix (gdb mode only)
Show the default numeric base for numeric output.
show print address (gdb mode only)
Show whether the debugger is set to print or not print the value of a pointer as an address.
show print elements (gdb mode only)
Show the maximum number of array elements the debugger is set to print.
show print repeats (gdb mode only)
Show the the current threshold of repeated identical elements that the debugger is set to print.
show print static-members (gdb mode only)
Show the current setting for printing static class members with the the print command.
show process set
List information about one or all process sets.
show prompt (gdb mode only)
Show the current debugger prompt.
show user (gdb mode only)
Show the definition of one or all user-defined commands.
show values (gdb mode only)
Show ten values of the value history.
show width (gdb mode only)
Show the width of the screen.
source
Execute commands from a batch file.
step
Step forward in source, into any function calls.
stepi
Step forward in assembler instructions, into any function calls.
target core (gdb mode only)
Specify a core file as a target.
tbreak (gdb mode only)
Set a temporary breakpoint at specified location.
thread
Show or change the current thread.
unset environment (gdb mode only)
Delete the specified environment variable.
unset substitute-path (gdb mode only)
Unset a source directory substitution rule.
until (gdb mode only)
Run until a specific line.
up
Move a specific number of frames up the stack and print them.
up-silently (gdb mode only)
Move a specific number of frames up the stack but do not print them.
watch (gdb mode only)
Set a write watchpoint on the specified expression.
whatis
Print the type of a variable.
while
Execute the command list while the specified expression is not zero.
x (gdb mode only)
Print memory at the specified address.
Copyright © 2001-2011, Intel Corporation. All rights reserved.