CLI Command Summary
This chapter contains a summary of all TotalView® Debugger CLI commands. The commands are described in detail in
Chapter 2, “ CLI Commands,” and
Chapter 3, “CLI Namespace Commands,” .
Gets and sets action point properties
TV::actionpoint action [ object-id ] [ other-args ]
Creates a new user-defined pseudonym for a command
alias alias-name defn-body
Views previously defined aliases
alias [ alias-name ]
Returns a command’s output as a string
capture [ -out | -err | -both ] [ -f filename ] command
Displays information about action points
dactions [ ap-id-list ] [ -at source-loc ]
[ -enabled | -disabled ]
[ -enabled_blocks | -disabled_blocks ]
Saves action points to a file
dactions -save [ filename ]
Loads previously saved action points
dactions -load [ filename ]
Changes the value of a scalar variable
dassign target value
Brings currently executing processes under TotalView control
dattach [ -g gid ] [ -r hname ]
[ -replay | -no_replay ]
[ -go | -halt ]
[ -ask_attach_parallel | -no_attach_parallel ]
[ -c corefile-name ] [ -rank num ]
[ -e ] fname pid-list
[ -parallel_attach_subset subset_specification ]
Creates a barrier breakpoint at a source location
dbarrier breakpoint-expr [ -stop_when_hit { group | process | none } ]
[ -stop_when_done { group | process | none } ] [ -pending ]
Creates a barrier breakpoint at an address
dbarrier -address addr
[ -stop_when_hit { group | process | none } ]
[ -stop_when_done { group | process | none } ] [ -pending ]
Creates a breakpoint at a source location
dbreak breakpoint-expr [ -p | -g | -t ] [ [ -l lang ] -e expr ] [ -pending ]
Creates a breakpoint at an address
dbreak -address addr [ -p | -g | -t] [ [ -l lang ] -e expr ] [ -pending ]
Clears the remote library cache
dcache -flush
Displays parallel backtrace data
[-data pbv_data_array] [-show_details] [-sort columns] [-hide_backtrace]
[-save_as_csv filename] [-save_as_dot filename]
Creates a checkpoint on IBM AIX
dcheckpoint [ -delete | -halt ]
Continues execution and waits for execution to stop
dcont
Manages NVIDIA® CUDA™ GPU threads, providing the ability to inspect them, change the focus, and display their status.
dcuda
Deletes some action points
ddelete action-point-list
Deletes all action points
ddelete -a
Detaches from the processes
ddetach
Disables some action points
ddisable action-point-list [ -block number-list ]
Disables all action points
ddisable -a
Loads a shared object library
ddlopen [ -now | -lazy ] [ -local | -global ] [ -mode int ] filespec
Displays information about shared object libraries
ddlopen [ -list dll-ids... ]
Moves down the call stack
ddown [ num-levels ]
Converts a decimal number into hexadecimal
TV::dec2hex number
Enables some action points
denable action-point-list
Enables all disabled action points in the current focus
denable -a
Display memory contents
dexamine [ -column_count cnt ] [ -count cnt ] [ -data_only ]
[ -show_chars ] [ -string_length len ] [ -format fmt ]
[ -memory_info ] [ -wordsize size ] variable_or_expression
Removes the top-most suspended expression evaluation
dflush
Removes all suspended dprint computations
dflush -all
Removes dprint computations preceding and including a suspended evaluation ID
dflush susp-eval-id
Changes the target of future CLI commands to this P/T set
dfocus p/t-set
Executes a command in this P/T set
dfocus [ p/t-set command ]
Displays global array variables
dga [-lang lang_type] [ handle_or_name ] [ slice ]
Resumes execution of target processes
dgo
Adds members to thread and process groups
dgroups -add [ -g gid ] [ id-list ]
Deletes groups
dgroups -delete [ -g gid ]
Intersects a group with a list of processes and threads
dgroups -intersect [ -g gid ] [ id-list ]
Prints process and thread group information
dgroups [ -list ] [ pattern-list ]
Creates a new thread or process group
dgroups -new [ thread_or_process ] [ -g gid ] [ id-list ]
Removes members from thread or process groups
dgroups -remove [ -g gid ] [ id-list ]
Suspends execution of processes
dhalt
Shows Memory Debugger state
dheap [ -status ]
Applies a saved configuration file
dheap -apply_config { default | filename }
Shows information about a backtrace
dheap -backtrace [ subcommands ]
Compares memory states
dheap -compare subcommands [ optional_subcommands ]
[ process | filename [ process | filename ] ]
Enables or disables the Memory Debugger
dheap { -enable | -disable }
Enables or disables event notification
dheap -event_filter subcommands
Writes memory information
dheap -export subcommands
Specifies which filters the Memory Debugger uses
dheap -filter subcommands
Writes guard blocks (memory before and after an allocation)
dheap -guard [ subcommands ]
Enables and disables the retaining (hoarding) of freed memory blocks
dheap -hoard [ subcommands ]
Displays Memory Debugger information
dheap -info [ -backtrace ] [ start_address [ end_address ] ]
Indicates whether an address is within a deallocated block
dheap -is_dangling address
Locates memory leaks
dheap -leaks [ -check_interior ]
Enables or disables Memory Debugger event notification
dheap -[no]notify
Paints memory with a distinct pattern
dheap -paint [ subcommands ]
Enables and disables the ability to catch bounds errors and use-after-free errors retaining freed memory blocks
dheap -red_zones [ subcommands ]
Enables and disables allocation and reallocation notification
dheap -tag_alloc subcommand start_address [ end_address]
Displays the Memory Debugger’s version number
dheap -version
Displays information about the state of the program as it is being replayed. If you have received a timestamp, you can go back to the line that was executing at that time.
dhistory [ -info ] [ -get_time ] [ -go_time time ] [ -go_live ]
[ -enable ] [ -disable ]
Holds processes
dhold -process
Holds threads
dhold -thread
Terminates execution of target processes
dkill [ -remove ]
Appends list elements to a TotalView variable
dlappend variable-name value [ ... ]
Displays code relative to the current list location
dlist [ -n num-lines ]
Displays code relative to a named location
dlist breakpoint-expr [ -n num-lines ]
Displays code relative to the current execution location
dlist -e [ -n num-lines ]
Manages shared libraries
TV::dll action [ dll-id-list ] [ -all ]
Loads debugging information
dload [ -g gid ] [ -mpi starter_value ] [ -r hname]
[ -replay | -noreplay ]
[ -env variable=value] ... [ -e ] executable
[ -parallel_attach_subset subset_specification ]
Displays memory use information
dmstat
Steps source lines, stepping over subroutines
dnext [ -back ] [ num-steps ]
Steps machine instructions, stepping over subroutines
dnexti [ -back ] [ num-steps ]
Executes until just after the place that called the current routine
dout [ -back ] [ frame-count ]
Prints the value of a variable or expression
dprint [ -nowait ] [ -slice slice_expr ] [ -stats [ -data ] ] variable_or_expression
Shows the status of processes and threads in an array of P/T expressions
dptsets [ ptset_array ] ...
Restarts processes
drerun [ cmd_arguments ] [ < infile ]
[ > [ > ][ & ] outfile ]
[ 2> [ > ] errfile ]
Restarts a checkpoint on AIX
drestart [ -halt ] [ -g gid ] [ -r host ] [ -no_same_hosts ]
Restarts a checkpoint on SGI
drestart [ process-state ] [ -no_unpark ] [ -g gid ] [ -r host ]
[ -ask_attach_parallel | -no_attach_parallel ]
[ -no_preserve_ids ] checkpoint-name
Starts or restarts processes
drun [ cmd_arguments ] [ < infile ]
[ > [ > ][ & ] outfile ]
[ 2> [ > ] errfile ]
Loads a session
dsession [ -load session_name ]
Creates or changes a CLI state variable
dset debugger-var value
Views current CLI state variables
dset [ debugger-var ]
Sets the default for a CLI state variable
dset -set_as_default debugger-var value
Shows current status of processes and threads
dstatus
Steps lines, stepping into subfunctions
dstep [ -back ] [ num-steps ]
Steps machine instructions, stepping into subfunctions
dstepi [ -back ] [ num-steps ]
Releases a process
dunhold -process
Releases a thread
dunhold -thread
Restores a CLI variable to its default value
dunset debugger-var
Restores all CLI variables to their default values
dunset -all
Runs to a line
duntil [ -back ] line-number
Runs to an address
duntil [ -back ] -address addr
Runs into a function
duntil proc-name
Moves up the call stack
dup [ num-levels ]
Blocks command input until the target processes stop
dwait
Defines a watchpoint for a variable
dwatch variable [ -length byte-count ] [ -p | -g | -t ]
[ [ -l lang ] -e expr ] [ -t type ]
Defines a watchpoint for an address
dwatch -address addr -length byte-count [ -p | -g | -t ]
[ [ -l lang ] -e expr ] [ -t type ]
Determines what a name refers to
dwhat symbol-name
Displays locations in the call stack
dwhere [ -level level-num ] [ num-levels ] [ -args ] [ -locals ] [ -registers ]
[ -noshow_pc ][ -noshow_fp ][ -show_image ]
Displays all locations in the call stack
dwhere -all [ -args ] [ -locals ] [-registers ]
[ -noshow_pc ][ -noshow_fp ][ -show_image ]
Adds or removes a thread from a workers group
dworker { number | boolean }
Returns a list of all error code tags
TV::errorCodes
Returns or raises error information
TV::errorCodes number_or_tag [ -raise [ message ] ]
Terminates the debugging session
exit [ -force ]
Manipulates values created by dprint -nowait
TV::expr action [ susp-eval-id ] [ other-args ]
Returns a list of groups in the current focus
TV::focus_groups
Returns a list of processes in the current focus
TV::focus_processes [ -all | -group | -process | -thread ]
Returns a list of threads in the current focus
TV::focus_threads [ -all | -group | -process | -thread ]
Gets and sets group properties
TV::group action [ object-id ] [ other-args ]
Displays help information
help [ topic ]
Converts to decimal
TV::hex2dec number
Gets and sets process properties
TV::process action [ object-id ] [ other-args ]
Terminates the debugging session
quit [ -force ]
Reads symbols from libraries
TV::read_symbols -lib lib-name-list
Reads symbols from libraries associated with a stack frame
TV::read_symbols -frame [ number ]
Reads symbols for all frames in the backtrace
TV::read_symbols -stack
Provides responses to commands
TV::respond response command
Gets and sets internal scope properties
TV::scope action [ object-id ] [ other-args ]
“Sources” a .tvd file when a process is loaded
TV::source_proccess_startup process_id
Manages threads using commands modeled after the GDB SPU Runtime System (SPU) library.
spurs add [ directory directory-list ... ]
Sets terminal properties
stty [ stty-args ]
Returns or sets internal TotalView symbol information
TV::symbol action [ object-id ] [ other-args ]
Gets and sets thread properties
TV::thread action [ object-id ] [ other-args ]
Gets and sets type properties
TV::type action [ object-id ] [ other-args ]
Creates type transformations and examines properties
TV::type_transformation action [ object-id ] [ other-args ]
Removes an alias
unalias alias-name
Removes all aliases
unalias -all