6. Console command reference¶
There is a large number of console commands supported, but you only need to be familiar with a small subset to make good use of the Calypsi debugger.
6.1. Essential commands¶
Command |
Description |
|---|---|
|
Set a breakpoint at given label |
|
Start the program |
|
Continue execution |
|
Step to next line, skipping over calls |
|
Step to next line, going into calls |
|
Exit the debugger |
|
Interrupt execution |
6.2. Execution control¶
Command |
Description |
|---|---|
|
Interrupt execution |
|
Interrupt execution |
|
Start the program |
|
Start the program |
|
Step to next source line, going into calls |
|
Step to next source line, going into calls |
|
Step at instruction level, going into calls |
|
Step at instruction level, going into calls |
|
Step to next source line, skipping over calls |
|
Step to next source line, skipping over calls |
|
Step at instruction level, skipping over calls |
|
Step at instruction level, skipping over calls |
|
Continue execution |
|
Continue execution |
|
Abort execution |
6.3. Breakpoint commands¶
Created breakpoints are given a numeric identity. Conditional expressions and skip counts for breakpoints are supported.
Command |
Description |
|---|---|
|
Display all breakpoints |
|
Set a breakpoint at given label |
|
Set a breakpoint at source position |
|
Set a breakpoint at given address.
The address must be preceded by a |
|
Same as |
|
Remove breakpoint at given label |
|
Remove breakpoint at source position |
|
Remove breakpoint at given address. |
|
Remove breakpoint with given number, or all breakpoints if no argument |
|
Enable breakpoint with given number, or all breakpoints if no argument |
|
Disable breakpoint with given number, or all breakpoints if no argument |
|
Attach a conditional expression to given breakpoint |
6.4. Parameters¶
Parameters are provided to control behavior.
Command |
Description |
|---|---|
|
Set a parameter |
|
Display the value of a parameter |
Note
Many parameters are booleans, they can be set to true using on
or 1, and to false using off or 0.
Parameter |
Description |
|---|---|
|
The target architecture |
|
Whether to allow pending breakpoints when a breakpoint cannot be set |
|
Prepend the search path for source files |
|
Target endian, normally derived from the debug image |
|
The character set used by the host (normally UTF-8) |
|
The source language being used |
|
Controls logging to file |
|
Controls how Lua errors are handled |
|
Whether MI commands are processed or not when target is running (Calypsi always try to processes MI commands, regardless of the state of the program being debugged) |
|
Controls how non-ASCII strings are displayed |
|
The current prompt text |
|
Number of source lines to show before the current line when stopping |
|
Number of source lines to show after the current line when stopping, plus 1 for the current line itself |
|
The character set used by the target (normally UTF-8) |
|
The wide character set used by the target (normally UTF-32) |
The following parameters are recognized, but are not implemented and purely exist for the benefit of various debugger front ends which may issue them to initialize the debugger session.
Parameter |
Description |
|---|---|
|
Whether to load symbols automatically when shared libraries are being loaded |
|
Only present for compatibility with debugger front ends |
|
The terminal used by program being debugged |
|
Whether pagination is enable or not (pagination is not currently supported) |
|
Allow program threads to be examined while other threads are running freely |
|
Whether an object’s type should be based on vtable information |
|
The height of a paginated display |
|
Search path for shared libraries |
|
Whether to stop when shared libraries are being loaded or unloaded |
|
Only for compatibility with older
versions, use |
6.5. Data manipulation¶
Command |
Description |
|---|---|
|
Pretty print the register values |
|
Evaluate an expression |
|
Evaluate an expression (same as |
|
Disassemble a region of memory |
6.6. File commands¶
Command |
Description |
|---|---|
|
Specify the program to be debugged |
|
Specify the program to be debugged
(same as |
|
Show the program source files and how they are mapped to real files on the file system |
|
Show the current program source file |
6.7. Directory context¶
Command |
Description |
|---|---|
|
Display current directory |
|
Set current directory |
|
Show the search path for source files |
6.8. Thread commands¶
Command |
Description |
|---|---|
|
Show the existing threads |
|
Switch context to thread n |
6.9. Lua commands¶
Command |
Description |
|---|---|
|
Run a Lua script |
|
Show existing Lua instances |
|
Remove a Lua instance |
6.10. HP-41 modules¶
In addition to providing modules on the command line you can do it using commands as well. This allows you to display and alter set of plugged in modules without ending the debug session.
Command |
Description |
|---|---|
|
Insert a plug-in module, |
|
Display the inserted modules |
|
Remove the plug-in module that occupy the given page number |
Note
You should turn the calculator off before altering the set of modules to avoid any potential strange behavior. This is because the calculator operating system as well as some modules, have code which configures the system for the current set of modules at power on.