| Previous | Contents | Index |
(ladebug) alias x "set $lang=\"C++\" " (ladebug) alias x x set $lang="C++" (ladebug) |
(ladebug) alias ada "ignore sigalrm; ignore sigfpe; set $lang=\"Ada\";" (ladebug) alias ada ada ignore sigalrm; ignore sigfpe; set $lang="Ada"; (ladebug) |
S next Si nexti W list $curline - 10:20 a assign att attach b stop at bp stop in c cont d delete det detach e file f func g goto h history j status l list li ($curpc)/10i; set $curpc = $curpc + 40 n next ni nexti p print pd printf "%d", pi playback input plist show process all po printf "0%o", pr printregs ps printf "%s", px printf "0x%lx", q quit r rerun ri record input ro record output s step si stepi sw switch switch process t where tlist show thread all (show thread when the kernel debugging option is used) ts where thread all tset thread (only defined during kernel debugging) tstack where thread all u list $curline - 9:10 w list $curline - 5:10 wi ($curpc - 20)/10i wm watch memory wv watch variable |
|
assign target = expression |
|
assign [classname::]member = ["filename"] `expression assign [object.]member = ["filename"] `expression |
For C++, use the assign command to
modify static and object data members in a class, and variables
declared as reference types, type const,
or type static. The address referred to
by a reference type cannot be changed, but the value at that address
can be changed.
|
attach process_id image_file |
|
call function([parameter]) |
|
catch [signal] |
|
catch unaligned |
|
class [classname] class classname::(type signature) class classname ::(type signature) |
|
cont [signal] [to linenumber] [in function] |
|
delete integer [,...] delete all delete * |
|
delsharedobj shared_object |
|
detach [process_id_list] |
|
disable integer [,...] disable all disable * |
|
down [number] |
|
dump [function] dump. |
|
enable integer [,...] enable all enable * |
|
export [env_variable [= value]] |
|
file [filename] |
|
func [function] func [integer] |
|
goto linenumber |
|
help [command] [ladebug] |
|
history [integer] |
|
ignore [signal] |
|
ignore unaligned |
|
kill |
|
kps |
|
list startline [,endline] list startline [:count] list function |
|
listobj |
|
load [image_file [core_file]] unload process_id_list unload image_file |
|
next [expression] |
|
nexti [expression] |
|
patch expression1 = expression2 |
|
playback input filename |
|
pop [number_of_frames] |
|
print expression [,...] print @expression |
|
print *this print object print [object.]member print *( derived_class *) object |
Use the print command to display the
value of an object, including inherited members and the value of data
members in an object. Type casts can be used to interpret a base class
object as a derived class object, or to interpret a derived class
object as a base class object. To interpret a base class type object as
the derived type, use the last form of the print command.
Use the $usedynamictypes variable to
control whether Ladebug displays static (value = 0) or dynamic (value =
1) information. The default is dynamic.
|
printenv [env_variable] |
|
|
|
printregs |
|
process [process_id | image_file | debugger_variable] |
|
quit |
|
readsharedobj shared_object |
|
record input filename record output filename record io filename |
|
(ladebug) record {input,output,io} /dev/null |
|
return [function] |
|
run [program_arguments] [io_redirection] rerun [program_arguments] [io_redirections] |
|
set [variable = definition] unset variable |
| $ascii | With the default value of 1, enables the print command to print character-type data as ASCII characters, only when the bit value is that of a printable 7-bit subset ASCII character. (Other bit values are printed as octal numbers.) With a value of 0, all printable ISO Latin-1 characters are printed as characters. |
| $beep | With the default value of 1, causes a beep to sound when a user attempts to perform an illegal action while editing the debugger command line (for example, moving the cursor past the end of the line, or "yanking"---pasting -- from an empty cut buffer). |
| $childprocess | Can be specified in place of the process ID. (Ladebug automatically sets this variable when an application forks a child process.) |
| $catchexecs | When set to 1, instructs the debugger to notify the user and stop the program when a program execs. The default is 0. |
| $catchforks | When set to 1, instructs the debugger to notify the user when a program forks a child process. The child process stops and is brought under debugger control. (By default, the parent process is not stopped. See the $stopparentonfork description.) The default is 0. |
| $curevent | Is set to the event number of the current event at the start of an event, allowing its use within the expression of an event. |
| $curfile | Specifies the current source-code file. |
| $curline | Specifies the current line in the source file. |
| $curpc | Specifies the current point of program execution. This variable is used by the wi and li aliases. |
| $cursrcline | Specifies the line number of the last line of source code listed, plus one. |
| $curthread | Indicates the thread ID of the current thread within the current process. You can change to a different thread by setting $curthread. |
| $decints | When set to 1, all integers printed by the debugger are displayed as decimal numbers. The default is 0. |
| $editline | With the default of 1, enables the command-line editing features. The command-line editing features are described in Chapter 1. For backward compatibility, you can set this variable to 0. |
| $eventecho | When set to 1, echoes events (such as breakpoints) with event numbers when executed. The default is 1. |
| $hasmeta | For international users. When set to 1, causes any 8-bit character to be interpreted as the corresponding 7-bit character plus the Meta character (which is the ALT key whose MSB bit represents a Meta modifier). This could be used for binding editing functions to ALT plus key sequences. The default depends on several factors, including the locale and whether the terminal has Meta capability. In the United States, the default is usually 0. |
| $hexints | When set to 1, all integers are displayed as hexadecimal numbers. The default is 0. |
| $historylines | Specifies the number of previously input commands listed in response to the history command. The default is 20. |
| $indent | When set to 1, specifies that structures will be printed with added indentation to render them more readable. The default value is 1. |
| $lang | Specifies the programming language used in the program being debugged. For mixed-language programs, $lang is set to the language corresponding to the current frame. The variable is updated when the program execution stops. |
| $listwindow | Specifies how many lines the list command displays. The default is 20. |
| $main | Specifies the name of the function that the debugger enters first. The default is main() , but this can be set to any function. This variable is useful when debugging languages whose primary function is called something other than main() . |
| $maxstrlen | Specifies the maximum number of characters to print when the value of a string is printed. The default is 128. |
| $octints | When set to 1, the debugger prints all integers as octal numbers. The default is 0. |
| $overloadmenu | When debugging C++ programs only, if this variable is set to 1, a menu of overloaded functions is displayed so you can select the desired function from the list of type signatures of the function. When set to 0, no menu is displayed and you must disambiguate overloaded functions by providing the full type signature. The default is 1. |
| $page | Controls debugger output pagination. When set, the debugger generated terminal output will be paginated. Default value is 1 (ON) for command-line interface and 0 (OFF) for the GUI. |
| $pagewindow | Determines the number of lines per page to be displayed when output pagination is turned on. Default value is 0 which means dynamically adjust the page size to the user's window size. |
| $parentprocess | Can be specified in place of the process ID in commands that take a process ID as an argument. (Ladebug automatically sets this variable when an application forks a child process.) |
| $pid | Indicates the process ID of the current process. Only for use in kernel debugging (either local or remote). |
| $pimode | Specifies whether the playback input command echoes input. If set to 1, commands from the script file are echoed. If set to 0, commands are not echoed. The default is 0. |
| $prompt | Specifies the debugger prompt. The default is (ladebug). |
| $repeatmode | When set to 1, causes the debugger to repeat the previous command if you press the Return key at the (ladebug) prompt. The default is 1. |
| $stackargs | When set to 1, causes the values of arguments to be included in the output of the where, up, down , and dump commands. When large or complex values are passed by value, the output can be voluminous. You can set $stackargs to 0 to suppress the output of argument values. The default is 1. |
| $stepg0 | When set to 0, the debugger steps over calls to routines that are compiled without symbol information. When set to 1, the debugger steps into these calls. The default is 0. |
| $stoponattach | When set to 1, causes the debugger to stop a running process right after attaching to it. When set to 0, causes the debugger to allow the process to run to completion; in this case, to interrupt the process, enter Ctrl/C. The default is 0. |
| $stopparentonfork | When set to 1, instructs the debugger to stop the parent process when a program forks a child process. (See also the $catchforks description.) The default is 0. |
| $threadlevel | Enables Ladebug to determine whether you are working with DECthreads or native threads. The default is decthreads if the application is multithreaded and is using DECthreads. Otherwise, the default is native. You can switch from one mode to the other by setting $threadlevel. In kernel mode, $threadlevel is always native. |
| $tid | Indicates the thread ID of the current thread within the current process. You can change to a different thread by setting $tid. Only for use in kernel debugging (either local or remote). |
| $usedynamictypes | When set to 1, instructs the debugger to display dynamic type information. When set to 0, static type information is displayed. The default is 1. Output of the print , trace , tracei , and whatis commands is affected. |
| $verbose | When set to 1, specifies whether debugger output should include all possible program information, including base pointers and virtual function pointers (for C++ programs only). The default is 0. |
|
setenv [env_variable [value]] |
|
sh command [argument ...] |