Next: Interpreters, Previous: Controlling GDB, Up: Top [Contents][Index]
ROCGDB provides several mechanisms for extension. ROCGDB also provides the ability to automatically load extensions when it reads a file for debugging. This allows the user to automatically customize ROCGDB for the program being debugged.
| • Sequences: | Canned Sequences of ROCGDB Commands | |
| • Python: | Extending ROCGDB using Python | |
| • Guile: | Extending ROCGDB using Guile | |
| • Auto-loading extensions: | Automatically loading extensions | |
| • Multiple Extension Languages: | Working with multiple extension languages | |
| • Aliases: | Creating new spellings of existing commands |
To facilitate the use of extension languages, ROCGDB is capable of evaluating the contents of a file. When doing so, ROCGDB can recognize which extension language is being used by looking at the filename extension. Files with an unrecognized filename extension are always treated as a ROCGDB Command Files. See Command files.
You can control how ROCGDB evaluates these files with the following setting:
set script-extension offAll scripts are always evaluated as ROCGDB Command Files.
set script-extension softThe debugger determines the scripting language based on filename extension. If this scripting language is supported, ROCGDB evaluates the script using that language. Otherwise, it evaluates the file as a ROCGDB Command File.
set script-extension strictThe debugger determines the scripting language based on filename extension, and evaluates the script using that language. If the language is not supported, then the evaluation fails.
show script-extensionDisplay the current value of the script-extension option.
Next: Interpreters, Previous: Controlling GDB, Up: Top [Contents][Index]